:root {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-gold: #d4af37;
  --accent-gold-dim: #8a7020;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-kr: 'Noto Serif KR', serif;
}

html {
  scroll-behavior: smooth;
}

* {
  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;
  padding-bottom: 50px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

#sticky-nav {
  position: fixed;
  /* Changed from sticky to fixed */
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  width: auto;
}

.nav-content {
  background: rgba(30, 30, 30, 0.85);
  /* Slightly more transparent */
  backdrop-filter: blur(15px);
  padding: 12px 25px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  gap: 15px;
}

select {
  background: transparent;
  width: 150px;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  appearance: none;
  /* Custom styling */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right .7em top 50%;
  background-size: .65em auto;
  padding-right: 2.5em;
  transition: all 0.3s ease;
}

select:hover {
  border-color: var(--accent-gold);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

option {
  background: var(--card-bg);
  color: var(--text-primary);
}

h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sutra-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sutra-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sutra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-gold-dim);
}

.sutra-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sutra-id {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 1.5rem;
  font-weight: bold;
}

.pada-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sutra-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sanskrit-section {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.pronunciation-kr {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 5px;
  font-family: var(--font-kr);
  opacity: 0.8;
}

.audio-player {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  width: 100%;
}

audio {
  width: 100%;
  max-width: 100%;
  height: 40px;
  border-radius: 20px;
  filter: invert(0.9);
  /* Invert colors to match dark theme better */
}


.translations-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.translation-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.translation-text {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.translation-text.english {
  font-family: var(--font-serif);
  padding-left: 15px;
  border-left: 2px solid var(--accent-gold);
}

.translation-text.korean {
  font-family: var(--font-kr);
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 6px;
  color: #d0d0d0;
}