/* ============================================================
   pages.css — shared styles for all subpages & blog posts
   ============================================================ */

/* ── Page hero (smaller than homepage) ── */
.page-hero {
  padding: 130px 0 60px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,58,237,.22) 0%, transparent 70%),
              var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero .breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 16px;
  font-size: .82rem; color: var(--text-muted);
}
.page-hero .breadcrumb a { color: var(--purple-light); }
.page-hero .breadcrumb span { color: var(--text-muted); }
.page-hero .tag {
  display: inline-block; padding: 5px 16px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; max-width: 600px; margin: 0 auto 24px; }
.page-hero .meta { font-size: .82rem; color: var(--text-muted); }
.page-hero .meta span { margin: 0 8px; }

/* ── Dropdown nav ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '▾'; font-size: .75em; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  background: #1a1a32; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 0 10px; min-width: 200px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, visibility .2s, transform .2s;
  transform: translateX(-50%) translateY(-6px);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.dropdown-open .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block; padding: 9px 18px;
  color: var(--text-muted); font-size: .9rem;
  transition: all .15s;
}
.dropdown-menu a:hover { color: var(--text); background: rgba(124,58,237,.15); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ── Article layout ── */
.article-wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
  align-items: start; padding: 64px 0;
}
.article-body { min-width: 0; }
.article-body h2 { font-family: var(--font-sans); font-size: 1.55rem; margin: 40px 0 14px; color: var(--text); border-left: 3px solid var(--purple); padding-left: 14px; }
.article-body h3 { font-family: var(--font-sans); font-size: 1.2rem; margin: 28px 0 10px; color: var(--text); }
.article-body h4 { font-family: var(--font-sans); font-size: 1rem; margin: 20px 0 8px; color: var(--purple-light); }
.article-body p  { font-size: .96rem; line-height: 1.8; margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { color: var(--text-muted); margin-bottom: 8px; font-size: .95rem; line-height: 1.7; }
.article-body li::marker { color: var(--purple-light); }
.article-body strong { color: var(--text); }
.article-body em { color: var(--purple-light); font-style: normal; font-weight: 500; }

/* Info box */
.info-box {
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.3);
  border-left: 4px solid var(--purple); border-radius: var(--r-sm);
  padding: 18px 20px; margin: 24px 0;
}
.info-box .info-box-title { font-weight: 700; color: var(--purple-light); margin-bottom: 6px; font-size: .9rem; }
.info-box p { margin: 0; font-size: .92rem; }

/* Warning box */
.warn-box {
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
  border-left: 4px solid var(--gold); border-radius: var(--r-sm);
  padding: 18px 20px; margin: 24px 0;
}
.warn-box .warn-title { font-weight: 700; color: var(--gold); margin-bottom: 6px; font-size: .9rem; }
.warn-box p { margin: 0; font-size: .92rem; }

/* Comparison table */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem;
}
.compare-table th {
  background: rgba(124,58,237,.2); color: var(--purple-light);
  padding: 12px 16px; text-align: left; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.compare-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text-muted); }
.compare-table tr:hover td { background: rgba(124,58,237,.07); color: var(--text); }
.compare-table td:first-child { font-weight: 600; color: var(--text); }

/* CTA box inside article */
.article-cta {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(91,33,182,.2));
  border: 1px solid rgba(124,58,237,.4); border-radius: var(--r-lg);
  padding: 32px; text-align: center; margin: 36px 0;
}
.article-cta h3 { margin-bottom: 8px; font-family: var(--font-sans); color: var(--text); }
.article-cta p  { margin-bottom: 18px; }

/* Blockquote */
.article-body blockquote {
  border-left: 3px solid var(--gold); padding: 14px 20px;
  margin: 24px 0; background: rgba(245,158,11,.07); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.article-body blockquote p { color: var(--text); font-style: italic; margin: 0; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 22px;
}
.sidebar-card h4 { color: var(--text); font-size: .9rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 10px; font-family: var(--font-sans); }
.sidebar-card ul { display: flex; flex-direction: column; gap: 8px; }
.sidebar-card li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.sidebar-card li a:hover { color: var(--purple-light); }
.sidebar-range { font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; font-family: var(--font-sans); }
.sidebar-label { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.sidebar-stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat .s-label { font-size: .85rem; color: var(--text-muted); }
.sidebar-stat .s-val { font-size: .85rem; font-weight: 600; color: var(--text); }

/* Singer profile card */
.singer-profile {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.singer-profile:last-child { border-bottom: none; }
.singer-avatar { font-size: 1.8rem; flex-shrink: 0; }
.singer-info { flex: 1; min-width: 0; }
.singer-info .s-name { font-weight: 600; color: var(--text); font-size: .92rem; }
.singer-info .s-range { font-size: .8rem; color: var(--text-muted); }
.singer-info .s-type { font-size: .78rem; color: var(--purple-light); }

/* ── Blog grid ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px; transition: all .25s; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.blog-tag {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 12px;
}
.blog-tag.guides  { background: rgba(96,165,250,.15); color: #60a5fa; }
.blog-tag.singers { background: rgba(244,114,182,.15); color: #f472b6; }
.blog-tag.training{ background: rgba(52,211,153,.15);  color: #34d399; }
.blog-tag.science { background: rgba(251,191,36,.15);  color: #fbbf24; }
.blog-card h3 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: 10px; color: var(--text); line-height: 1.4; }
.blog-card p  { font-size: .9rem; line-height: 1.65; flex: 1; margin-bottom: 16px; }
.blog-card .read-more { color: var(--purple-light); font-size: .88rem; font-weight: 600; }
.blog-card .read-more:hover { color: var(--gold); }
.blog-card .post-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }

/* ── Author box ── */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 24px; margin-top: 40px;
}
.author-avatar { font-size: 3rem; flex-shrink: 0; }
.author-info h4 { color: var(--text); margin-bottom: 4px; font-family: var(--font-sans); }
.author-info .author-role { color: var(--purple-light); font-size: .85rem; margin-bottom: 8px; }
.author-info p { font-size: .88rem; margin: 0; }

/* ── Related articles ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.related-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 18px; transition: all .2s;
}
.related-card:hover { border-color: var(--purple); }
.related-card h4 { font-family: var(--font-sans); font-size: .95rem; color: var(--text); margin-bottom: 6px; }
.related-card p { font-size: .84rem; margin-bottom: 10px; }
.related-card a { font-size: .85rem; color: var(--purple-light); font-weight: 600; }

/* ── Voice type page specific ── */
.vt-hero-range {
  display: inline-block; padding: 8px 24px; border-radius: 50px;
  font-size: 1.2rem; font-weight: 800; font-family: var(--font-sans);
  background: rgba(245,158,11,.15); color: var(--gold);
  border: 1px solid rgba(245,158,11,.3); margin-bottom: 20px;
}
.vt-stats-bar {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin: 28px 0;
}
.vt-stat { text-align: center; min-width: 120px; }
.vt-stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--purple-light); }
.vt-stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }

/* Subcategory cards */
.subtype-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 24px 0; }
.subtype-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px; transition: all .22s;
}
.subtype-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.subtype-name { font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 1rem; }
.subtype-range { font-size: .82rem; color: var(--gold); margin-bottom: 8px; }
.subtype-card p { font-size: .9rem; margin: 0; }

/* Famous singer list (detailed) */
.singer-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.singer-entry {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
}
.singer-entry-emoji { font-size: 2.2rem; }
.singer-entry-name { font-weight: 700; color: var(--text); }
.singer-entry-type { font-size: .82rem; color: var(--purple-light); }
.singer-entry-range { font-size: .82rem; color: var(--text-muted); }
.singer-entry-badge { padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .vt-stats-bar { gap: 16px; }
  .singer-entry { grid-template-columns: auto 1fr; }
  .singer-entry-badge { display: none; }
  .page-hero { padding: 100px 0 40px; }
  .article-wrap { padding: 36px 0; }
  .article-body h2 { font-size: 1.25rem; }
  .compare-table { font-size: .82rem; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Accessibility ── */
/* Skip link (defined in style.css but also needed for subpages) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* Keyboard-accessible dropdown (nav-dropdown in pages) */
.nav-dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Hamburger for subpages (same as style.css) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.nav-open .hamburger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .hamburger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger-btn { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(8,8,18,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px 20px;
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(124,58,237,.12);
    color: var(--text);
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    background: rgba(124,58,237,.08);
    border: none;
    border-radius: 8px;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    margin-top: 4px;
    display: none;
  }
  .nav-dropdown.dropdown-open .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu { display: block; }
  .nav-cta { display: none; }
}

/* Focus-visible for all subpage interactive elements */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* Touch targets for subpage links */
.dropdown-menu a { min-height: 44px; display: flex; align-items: center; }
.btn-primary, .btn-secondary { min-height: 44px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
