/* ============================================
   HINO.CSS — Página do Hino Oficial
   A.R.L.S. Estrela de Brasília nº 1484
   ============================================ */

/* ── Hero Banner ──────────────────────────── */
.hino-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-blue-deep-dark) 0%, var(--color-blue-deep) 60%, var(--color-blue-institutional) 100%);
  color: var(--color-white);
  padding: calc(var(--header-height, 80px) + 28px) 0 var(--space-6) 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--color-gold);
}

.hino-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(201, 168, 76, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 157, 224, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.hino-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hino-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-blue-celeste);
  margin-bottom: var(--space-3);
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hino-breadcrumb a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hino-breadcrumb a:hover {
  color: var(--color-gold);
}

.hino-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hino-hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  color: var(--color-blue-light);
  line-height: var(--leading-relaxed);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Main Container & Layout ──────────────── */
.hino-main-section {
  padding: var(--space-6) 0 var(--space-16) 0;
  background-color: var(--color-gray-lightest);
  min-height: 70vh;
}

.hino-grid-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* ── Left Column: Audio Player & Meta ─────── */
.hino-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--header-height-scrolled, 64px) + 24px);
}

/* Custom Audio Player Card */
.hino-player-card {
  background: linear-gradient(145deg, #002b47 0%, #00446d 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: var(--color-white);
  box-shadow: 0 16px 36px rgba(0, 44, 77, 0.22);
  border: 1px solid rgba(201, 168, 76, 0.3);
  position: relative;
  overflow: hidden;
}

.hino-player-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hino-player-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hino-player-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.25rem;
}

.hino-player-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  line-height: var(--leading-tight);
}

.hino-player-tagline {
  font-size: var(--text-xs);
  color: var(--color-blue-celeste);
  margin: 0;
}

/* Soundwave Equalizer Animation */
.hino-soundwave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin: var(--space-4) 0 var(--space-6) 0;
  padding: 0 var(--space-4);
}

.soundwave-bar {
  width: 4px;
  height: 8px;
  background: var(--color-blue-intense);
  border-radius: var(--radius-full);
  transition: height 0.2s ease, background-color 0.3s ease;
}

.hino-player-card.is-playing .soundwave-bar {
  background: var(--color-gold);
  animation: soundwaveJump 1.2s ease-in-out infinite alternate;
}

.hino-player-card.is-playing .soundwave-bar:nth-child(1) { animation-delay: 0.1s; height: 16px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(2) { animation-delay: 0.4s; height: 28px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(3) { animation-delay: 0.2s; height: 20px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(4) { animation-delay: 0.6s; height: 34px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(5) { animation-delay: 0.3s; height: 24px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(6) { animation-delay: 0.5s; height: 30px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(7) { animation-delay: 0.2s; height: 18px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(8) { animation-delay: 0.7s; height: 32px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(9) { animation-delay: 0.35s; height: 22px; }
.hino-player-card.is-playing .soundwave-bar:nth-child(10) { animation-delay: 0.55s; height: 14px; }

@keyframes soundwaveJump {
  0% { height: 6px; }
  50% { height: 32px; }
  100% { height: 12px; }
}

/* Progress Slider */
.hino-progress-container {
  margin-bottom: var(--space-4);
}

.hino-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.hino-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-blue-intense), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.hino-time-display {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--color-blue-celeste);
  margin-top: 6px;
}

/* Controls Toolbar */
.hino-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.hino-main-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-blue-deep-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.45);
  transition: all var(--transition-fast);
}

.hino-main-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.65);
  background: #deb859;
}

.hino-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hino-volume-btn {
  background: none;
  border: none;
  color: var(--color-blue-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.hino-volume-btn:hover {
  color: var(--color-gold);
}

.hino-volume-slider {
  width: 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
}

.hino-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
}

/* Secondary Player Actions */
.hino-player-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hino-btn-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hino-btn-action:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Metadata Card */
.hino-meta-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
}

.hino-meta-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-blue-deep);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-gray-light);
  padding-bottom: var(--space-2);
}

.hino-meta-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hino-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}

.hino-meta-label {
  color: var(--color-gray-dark);
  font-weight: 500;
}

.hino-meta-val {
  color: var(--color-blue-deep);
  font-weight: 600;
  text-align: right;
}

/* ── Right Column: Lyrics Parchment Card ──── */
.hino-lyrics-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-12);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 68, 109, 0.08);
  position: relative;
}

.hino-lyrics-card::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hino-lyrics-header {
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
}

.hino-lyrics-emblem {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3) auto;
  display: block;
}

.hino-lyrics-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-blue-deep);
  margin-bottom: var(--space-1);
}

.hino-lyrics-subtitle {
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.hino-lyrics-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: var(--space-4) auto 0 auto;
}

/* Strophes / Verses */
.hino-lyrics-body {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.85;
  color: var(--color-black);
}

.hino-strophe {
  margin-bottom: var(--space-8);
  position: relative;
  padding-left: var(--space-4);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.hino-strophe:hover {
  border-left-color: var(--color-blue-celeste);
  padding-left: var(--space-5);
}

.hino-strophe p {
  margin: 0 0 4px 0;
}

/* Chorus / Refrão */
.hino-strophe-chorus {
  background: linear-gradient(135deg, var(--color-blue-lightest), rgba(232, 244, 253, 0.4));
  border-left: 3px solid var(--color-gold);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: var(--space-8);
  box-shadow: 0 2px 10px rgba(0, 68, 109, 0.04);
}

.hino-strophe-chorus:hover {
  border-left-color: var(--color-gold);
  padding-left: var(--space-6);
}

.hino-chorus-tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-gold);
  margin-bottom: var(--space-2);
  display: block;
}

.hino-strophe-chorus p {
  font-weight: 600;
  color: var(--color-blue-deep);
}

/* Illuminated Drop Cap */
.hino-strophe-first::first-letter {
  font-size: 3rem;
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--color-blue-deep);
  font-weight: 700;
}

/* Lyrics Footer Date */
.hino-lyrics-footer {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-gray-light);
  text-align: right;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-gray-dark);
}

.hino-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gray-lightest);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gray-light);
  color: var(--color-blue-deep);
  font-weight: 500;
}

/* ── Toast Notification ───────────────────── */
.hino-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-blue-deep-dark);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.hino-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 992px) {
  .hino-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hino-sidebar {
    position: static;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }

  .hino-lyrics-card {
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 640px) {
  .hino-lyrics-card {
    padding: var(--space-6) var(--space-4);
  }

  .hino-lyrics-body {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .hino-strophe-chorus {
    padding: var(--space-4);
  }
}
