/* ===== VARIABLES ===== */
:root {
  --bg: #0e0e12;
  --surface: #17171e;
  --card: #1e1e28;
  --border: #2e2e3e;
  --gold: #f5c842;
  --teal: #3ecfb2;
  --rose: #f05a7e;
  --text: #e8e8f0;
  --muted: #8888a8;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
html, body { background-color: var(--bg); }

body {
  font-family: 'Heebo', sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  direction: rtl;
}

/* ===== NAV ===== */
.sitenav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: rgba(14,14,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
}
.sitenav .logo {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.sitenav .logo span { color: var(--text); font-weight: 300; }
.nav-links {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.3rem 0;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--gold); }

/* ===== PAGE BODY ===== */
.page-body {
  padding-top: 56px;
  min-height: 100vh;
}

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,200,66,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(62,207,178,0.08) 0%, transparent 70%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '𝄞';
  position: absolute;
  font-size: 28rem;
  opacity: 0.03;
  top: -6rem; left: -4rem;
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  background: rgba(245,200,66,0.15);
  border: 1px solid rgba(245,200,66,0.4);
  color: var(--gold);
  padding: 0.3rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
}
.hero h1 span { color: var(--gold); }
.hero p {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
}
.hero-arrow {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: bounce 1.5s infinite;
}

/* ===== CHAPTER GRID (index) ===== */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.chapter-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.chapter-tile:hover { border-color: var(--gold); transform: translateY(-3px); }
.chapter-tile .num {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.chapter-tile .icon { font-size: 2rem; }
.chapter-tile h3 { font-size: 1rem; font-weight: 700; }
.chapter-tile p { font-size: 0.85rem; color: var(--muted); }

/* ===== CHAPTER PAGE ===== */
.chapter-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.chapter-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.chapter-page h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}
.chapter-page h1 em { font-style: normal; color: var(--gold); }
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color 0.25s, transform 0.2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card .icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.card p { font-size: 0.88rem; color: var(--muted); }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.25s;
}
.step:hover { border-color: var(--rose); }
.step-num {
  min-width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: rgba(240,90,126,0.12);
  border: 1px solid var(--rose);
  color: var(--rose);
  font-weight: 900;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.25rem; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* ===== TIP / WARN ===== */
.tip, .warn {
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.tip {
  background: rgba(62,207,178,0.07);
  border: 1px solid rgba(62,207,178,0.3);
}
.tip strong { color: var(--teal); }
.warn {
  background: rgba(245,200,66,0.07);
  border: 1px solid rgba(245,200,66,0.3);
}
.warn strong { color: var(--gold); }
.tip p, .warn p { font-size: 0.9rem; }
.tip-icon { font-size: 1.2rem; min-width: 1.6rem; }

/* ===== STRINGS DIAGRAM ===== */
.strings-diagram {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.string-row {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.string-row:last-child { border-bottom: none; }
.string-row:hover { background: rgba(255,255,255,0.03); }
.string-num { font-size: 0.75rem; color: var(--muted); text-align: center; }
.string-line-wrap { display: flex; align-items: center; padding: 0 0.5rem; }
.string-line { height: 3px; width: 100%; border-radius: 2px; }
.string-name { font-size: 1rem; font-weight: 700; text-align: center; }

/* ===== CHORD GRID ===== */
.chord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.chord-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  transition: border-color 0.25s;
}
.chord-card:hover { border-color: var(--teal); }
.chord-name { font-size: 1.4rem; font-weight: 900; color: var(--gold); margin-bottom: 0.7rem; }
.chord-desc { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.finger-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.4rem; }

/* ===== VIDEO EMBED ===== */
.video-section { margin: 2rem 0; }
.video-section h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--teal); margin-bottom: 1rem;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.video-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
.video-caption {
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== COMPARE ===== */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1.5rem 0;
}
@media (max-width: 520px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}
.compare-card.electric { border-top: 3px solid var(--teal); }
.compare-card.classic  { border-top: 3px solid var(--gold); }
.compare-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.8rem; }
.compare-card.electric h3 { color: var(--teal); }
.compare-card.classic  h3 { color: var(--gold); }
.pro-con { display: flex; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.86rem; }
.pro { color: #6ee7b7; } .con { color: var(--rose); }

/* ===== PRACTICE WEEK ===== */
.practice-week {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.week-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 13px; padding: 1.1rem;
}
.week-card h4 { font-size: 0.83rem; font-weight: 700; color: var(--teal); margin-bottom: 0.5rem; }
.week-card ul { padding-right: 1.2rem; }
.week-card li { font-size: 0.83rem; color: var(--muted); margin-bottom: 0.25rem; }

/* ===== CHAPTER NAV (prev/next) ===== */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.chapter-nav a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.chapter-nav a:hover { border-color: var(--gold); transform: translateY(-2px); }
.chapter-nav a span { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.chapter-nav a.prev { text-align: right; }
.chapter-nav a.next { text-align: left; margin-right: auto; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}
footer span { color: var(--gold); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes bounce {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(6px); }
}
.fade-up { animation: fadeUp 0.6s ease both; }

/* ===== PRINT ===== */
@media print {
  html, body { background: white !important; color: black !important; }
  .sitenav, .chapter-nav, .video-section, .hero-arrow { display: none !important; }
  .chapter-page { padding: 1rem !important; }
  .card, .step, .week-card, .chord-card, .compare-card, .tip, .warn {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    color: black !important;
    break-inside: avoid;
  }
  .card p, .step p, .week-card li, .chord-desc, .finger-label,
  .lead, .muted { color: #444 !important; }
  .chord-name, .chapter-label, h1 em { color: #b8860b !important; }
  a { color: black !important; }
  .page-body { padding-top: 0 !important; }
  h1, h2, h3 { page-break-after: avoid; }
}
