/* ==========================================================================
   Premio al Mejor Libro Europeo del Año - Sistema de Diseño Clásico y Editorial
   ========================================================================== */

:root {
  /* Paleta de Colores*/
  --bg-color: #fcfaf6;          /* Crema/Marfi*/
  --bg-card: #ffffff;           /* Blanco puro*/
  --text-primary: #1c1917;      /* Carbón oscuro*/
  --text-secondary: #57534e;    /* Sepia/Gris oscuro*/
  --text-muted: #78716c;       /* Gris claro*/
  --accent-gold: #b45309;       /* Bronce/Oro mate*/
  --accent-gold-hover: #92400e; /* Bronce más oscuro*/
  --accent-gold-light: #fef3c7; /* Oro pálido*/
  --border-color: #e7e5e4;      /* Borde de papel*/
  --border-focus: #d97706;      /* Borde de enfoque dorado */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(120, 113, 108, 0.1), 0 4px 6px -2px rgba(120, 113, 108, 0.05);
  
  /* Fuentes */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  
  /* Transición */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de Estilos */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Encabezado --- */
.main-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-align: left;
}

.logo-area:hover {
  opacity: 0.8;
}

.header-logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-area h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-area .subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  font-weight: 500;
}

.est-tag {
  display: inline-block;
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* --- Navegación --- */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  background-color: #f5f5f4;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.nav-link {
  display: inline-block;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.03);
}

.nav-link.active {
  color: var(--bg-card);
  background-color: var(--text-primary);
}

/* --- Layout Base --- */
.content-wrapper {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  min-height: 70vh;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Pestañas de Años --- */
.years-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.years-tabs {
  display: flex;
  gap: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-gold);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--accent-gold);
}

/* --- Grid de Libros Público --- */
.books-display-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Tarjeta del Libro Principal */
.book-showcase-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: var(--transition);
}

@media (min-width: 992px) {
  .book-showcase-card {
    grid-template-columns: 380px 1fr;
  }
}

.book-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(120, 113, 108, 0.15);
}

/* Columna Izquierda: Portada y Metadatos */
.book-meta-side {
  background-color: #fafaf9;
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .book-meta-side {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    text-align: left;
    align-items: flex-start;
  }
}

/* Portada Ficticia */
.book-cover-mock {
  width: 170px;
  height: 250px;
  background: linear-gradient(135deg, #1c1917 0%, #44403c 100%);
  border-radius: 4px 12px 12px 4px;
  box-shadow: 8px 12px 20px rgba(0, 0, 0, 0.25), inset 4px 0 6px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #f5f5f4;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.book-cover-mock::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.25) 100%);
}

.cover-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--accent-gold);
  color: white;
  padding: 0.25rem 0.5rem;
  align-self: flex-start;
  border-radius: 2px;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem 0;
}

.cover-author {
  font-size: 0.8rem;
  color: #a8a29e;
  font-weight: 500;
}

.cover-year-stamp {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  bottom: -0.5rem;
  right: 0.5rem;
}

/* Detalles del Libro */
.award-tag {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.book-meta-list {
  list-style: none;
  width: 100%;
  margin-bottom: 1.5rem;
}

.book-meta-list li {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.book-meta-list strong {
  color: var(--text-primary);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-gold);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(180, 83, 9, 0.15);
}

.btn-store:hover {
  background-color: var(--accent-gold-hover);
  box-shadow: 0 6px 8px -1px rgba(180, 83, 9, 0.25);
}

/* Columna Derecha: Sinopsis Editorial */
.book-desc-side {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.book-desc-side h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-byline {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.book-synopsis {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- Panel de Administración (Grid y Formularios) --- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .admin-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.admin-table-card, .admin-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.admin-table-card h3, .admin-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

/* Tablas Responsivas */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#books-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

#books-table th {
  background-color: #fafaf9;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

#books-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

#books-table tbody tr:hover {
  background-color: #fafaf9;
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem !important;
}

/* Botones de Acción en Tabla */
.btn-action-group {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-edit {
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
}

.btn-edit:hover {
  background-color: var(--accent-gold);
  color: white;
}

.btn-delete {
  background-color: #fee2e2;
  color: #ef4444;
}

.btn-delete:hover {
  background-color: #ef4444;
  color: white;
}

/* Formulario */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="number"],
input[type="url"],
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #fafaf9;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.error-msg {
  display: block;
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--text-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--text-secondary);
}

.btn-secondary {
  background-color: #e7e5e4;
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: #d6d3d1;
  color: var(--text-primary);
}

.hidden {
  display: none !important;
}

/* --- Estados Varios --- */
.loading-state {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  padding: 5rem 0;
}

.empty-state {
  text-align: center;
  border: 2px dashed var(--border-color);
  padding: 4rem 2rem;
  border-radius: 12px;
  color: var(--text-secondary);
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* --- Notificaciones Toast --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 350px;
}

.toast {
  background-color: var(--text-primary);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  animation: slideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
  font-size: 0.85rem;
  font-weight: 500;
}

.toast.success {
  border-left: 4px solid var(--accent-gold);
}

.toast.error {
  border-left: 4px solid #ef4444;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.toast-close:hover {
  color: white;
}

/* --- Pie de Página --- */
.main-footer {
  background-color: #1c1917;
  color: #a8a29e;
  padding: 3rem 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.created-indicator {
  font-size: 0.75rem;
  color: #78716c;
  font-style: italic;
}

/* Estilos de Portada de Imagen Real */
.book-cover-container {
  width: 170px;
  height: 250px;
  margin-bottom: 2rem;
  perspective: 1000px;
  position: relative;
}

.book-real-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 8px 12px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: block;
}

.book-real-cover:hover {
  transform: rotateY(-5deg);
  box-shadow: 12px 16px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   HERO/PRESENTATION SECTION - Elegant Presentation Styles
   ========================================================================== */

.hero-section {
  padding: 4rem 0 5rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.3);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto 3rem auto;
  font-weight: 300;
}

/* Feature Cards */
.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.hero-feature {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.hero-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold-light);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, #fef9c3 100%);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
}

.hero-feature h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hero-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Button */
.hero-cta {
  margin-top: 2rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.25);
  border: none;
  cursor: pointer;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(180, 83, 9, 0.35);
  background: linear-gradient(135deg, #d97706 0%, var(--accent-gold) 100%);
}

/* ==========================================================================
   NEW LABEL FOR MOST RECENT YEAR TAB
   ========================================================================== */

.tab-btn .new-label {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: newPulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

@keyframes newPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Adjust tab button to accommodate the new label */
.tab-btn.has-new {
  display: inline-flex;
  align-items: center;
}

/* Separator between years section and books */
#public-view {
  padding-top: 1rem;
}

/* ==========================================================================
   STANDARDS SECTION & MEDAL OF EXCELLENCE - Selection Criteria
   ========================================================================== */

.standards-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 1.5rem;
  margin: 4rem -1.5rem; /* Extend background color full-width inside wrapper padding */
}

@media (min-width: 1200px) {
  .standards-section {
    margin: 4rem calc((100vw - 1200px) / -2 - 1.5rem);
    padding: 5rem calc((100vw - 1200px) / 2 + 1.5rem);
  }
}

.standards-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .standards-container {
    grid-template-columns: 350px 1fr;
  }
}

/* Simulated Medal Design */
.medal-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.medal-wrapper {
  position: relative;
  width: 220px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  margin-bottom: 1.5rem;
}

/* Medal Body with custom shadow and golden border */
.medal-body {
  position: absolute;
  top: 60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: #0a192f;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 0 10px #d4af37,
    0 0 20px rgba(212, 175, 55, 0.4),
    inset 0 0 25px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.medal-body:hover {
  transform: rotateY(15deg) rotateX(10deg) scale(1.05);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.35),
    0 0 0 12px #e5c158,
    0 0 30px rgba(212, 175, 55, 0.6),
    inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.medal-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

/* Simulated ribbon hanging above the medal */
.medal-ribbon {
  position: absolute;
  top: 0;
  width: 80px;
  height: 90px;
  background: linear-gradient(90deg, #b45309 0%, #d97706 50%, #b45309 100%);
  clip-path: polygon(0% 0%, 100% 0%, 75% 100%, 50% 85%, 25% 100%);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
}

.medal-ribbon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 100%;
  background: linear-gradient(90deg, #0a192f 0%, #1e293b 100%);
  opacity: 0.85;
}

/* Subtle glow behind the medal */
.medal-glow {
  position: absolute;
  top: 80px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
  pointer-events: none;
  animation: medalGlowPulse 4s ease-in-out infinite;
}

@keyframes medalGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

.medal-caption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Technical criteria layout */
.standards-content {
  display: flex;
  flex-direction: column;
}

.standards-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.standards-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.standards-intro {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .criteria-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.criteria-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
  transition: var(--transition);
}

.criteria-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.criteria-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.criteria-card h4::before {
  content: '✦';
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.criteria-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
