/* General Body Styles */
body {
  background-color: #f5f8ff;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header Styles */
header {
  background-color: #4c6ef5;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 3px solid #D93025;
  position: relative;
}

/* Container for the logo and its background */
.logo-container {
  position: absolute;
  top: 15px;
  left: 25px;
  width: 151px;
  height: 151px;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The blue circle background */
.logo-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #364fc7;
  border-radius: 50%;
}

/* The logo image itself */
#site-logo {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* The header title */
header h2 {
  margin: 0;
  font-size: 32px;
}

/* Navigation Styles */
nav {
  background-color: #4c6ef5;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 3px solid #D93025;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
}

nav a:hover {
  text-decoration: underline;
}

/* Main Content Styles */
main {
  padding: 30px;
  text-align: center;
  margin-top: 50px; 
}

main h1 {
  font-size: 28px;
  color: #333;
}

main h2 {
    font-size: 24px;
    color: #333;
    margin-top: 40px;
}

main h3 {
    font-size: 20px;
    color: #4c6ef5;
}

.centered-heading {
    text-align: center;
}

.tagline {
  font-size: 18px;
  color: #555;
}

.since {
    font-size: 16px;
    color: #777;
}

/* Horizontal Rule Styles */
hr {
  margin: 30px auto;
  width: 50%;
  border: none;
  border-top: 2px solid #4c6ef5;
}

/* Footer Styles */
footer {
  background-color: #4c6ef5;
  color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
  border-top: 3px solid #D93025;
}

/* General Link Styles */
a {
  color: #4c6ef5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Specific Link Styles */
.dark-link {
    color: #000;
    font-weight: bold;
}

.red-link {
    color: #FF0000;
}

/* Text alignment and list styles */
.text-justify {
    text-align: justify;
}

main ul {
    display: inline-block;
    text-align: left;
    margin-top: 10px;
}

main ul li {
    margin-bottom: 10px;
}

/* == Styles for People Page == */
.person-card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  margin: 25px auto;
  max-width: 700px;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.person-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid #f1f3f5;
  padding-bottom: 10px;
}

.person-card p {
    margin-bottom: 15px;
}

.person-card ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0;
}

.person-card ul li {
  margin-bottom: 8px;
}

/* == Styles for Tech Specs Page == */
.spec-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 10px 30px;
  text-align: left;
}

.spec-column {
  flex: 1;
  min-width: 300px;
  padding: 0 20px;
}

.spec-column section {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

dl {
  margin-top: 15px;
}

dt {
  font-weight: bold;
  color: #333;
}

dd {
  margin-left: 20px;
  margin-bottom: 10px;
  color: #555;
  border-left: 3px solid #e9ecef;
  padding-left: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.data-table thead th {
  background-color: #4c6ef5;
  color: #fff;
  padding: 12px;
  text-align: left;
}

.data-table tbody td {
  padding: 10px;
  border: 1px solid #dee2e6;
  vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.error-message {
  color: #fff;
  background-color: #e44d26;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.note {
  font-style: italic;
  font-size: 0.9em;
  color: #6c757d;
  margin-top: 15px;
}

/* == Judgement Column Color Coding (Bilingual)   == */
.judgement-muy-fácil, .judgement-very-easy { 
  color: #28a745; 
  font-weight: bold; 
}
.judgement-fácil, .judgement-easy { 
  color: #17a2b8; 
}
.judgement-medio, .judgement-medium { 
  color: #ffc107; 
  font-weight: bold; 
}
.judgement-difícil, .judgement-hard { 
  color: #dc3545; 
}
.judgement-muy-difícil, .judgement-very-hard { 
  color: #8b0000; 
  font-weight: bold; 
}
.judgement-nd, .judgement-na { 
  color: #6c757d; 
}


/* == Mining Pools Page Styles == */
.pool-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px auto;
}

.pool-card {
  flex-basis: 350px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pool-card h3 {
  margin-top: 0;
  color: #4c6ef5;
}

.form-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  text-align: left;
}

.suggestion-form .form-group {
  margin-bottom: 20px;
}

.suggestion-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.suggestion-form input[type="text"],
.suggestion-form input[type="url"],
.suggestion-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box; /* Important */
}

.submit-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #218838;
}

/* Status Messages for Form Submission */
.status-success {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 20px;
}

.status-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 20px;
}

/* == SEO Homepage Styles == */
.features-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto;
  gap: 20px;
}

.feature {
  flex-basis: 300px;
  text-align: left;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature h3 {
  margin-top: 0;
  text-align: center;
}

.cta-buttons {
  margin-top: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #4c6ef5;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #364fc7;
  color: #fff;
  text-decoration: none;
}

/* == Estilo para la Bandera en el Footer == */
.footer-flag {
  height: 1em; /* Ajusta la altura de la bandera al tamaño del texto circundante */
  width: auto; /* Mantiene la proporción de la imagen */
  vertical-align: middle; /* Alinea la bandera verticalmente con el texto */
  margin-left: 8px; /* Añade un pequeño espacio a la izquierda de la bandera */
}

/* == Styles for Exchanges Page == */
.featured-exchange {
  background-color: #ffffff;
  border: 2px solid #4c6ef5;
  border-radius: 8px;
  padding: 30px;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(76,110,245,0.2);
}

.exchange-logo-wrapper {
  display: inline-block;
  background-color: #f8f9fa; /* Light grey background */
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 20px;
}

.exchange-logo {
  display: block;
  max-height: 200px;
}


.featured-exchange h4 {
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
}

.featured-exchange ul {
  list-style-type: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.featured-exchange ul li {
  margin-bottom: 8px;
  padding-left: 1.5em;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2328a745" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>');
  background-repeat: no-repeat;
  background-position: 0 0.2em;
}

.how-to-trade {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 30px;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.how-to-trade h3 {
  margin-top: 0;
  text-align: center;
}

.how-to-trade ol {
  padding-left: 20px;
}

.how-to-trade ol li {
  margin-bottom: 15px;
  line-height: 1.5;
}

/* == Estilos para la Página de Primeros Pasos == */
.step-container {
  max-width: 800px;
  margin: 40px auto;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-left: 5px solid #4c6ef5; /* Acento de color a la izquierda */
  border-radius: 8px;
  margin-bottom: 25px;
  padding: 25px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-card.critical-step {
  border-left-color: #D93025; /* Acento rojo para pasos críticos */
}

.step-icon {
  font-size: 2.5em;
  color: #4c6ef5;
  margin-right: 25px;
  width: 50px;
  text-align: center;
}

.step-card.critical-step .step-icon {
  color: #D93025;
}

.step-content {
  text-align: left;
  flex: 1;
}

.step-content h3 {
  margin-top: 0;
  color: #333;
}

.step-content p {
  margin-bottom: 15px;
}

.image-placeholder {
  background-color: #f0f2f5;
  border: 2px dashed #ced4da;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
  margin-top: 15px;
}
