/* Shared styles for the blog. Tokens and components mirror the homepage. */
:root {
    --neon: #C8FF00;
    --neon-soft: rgba(200, 255, 0, 0.12);
    --bg: #080809;
    --surface: #0e0e0f;
    --card: #131314;
    --card-high: #1a191b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.6);
    --faint: rgba(255, 255, 255, 0.52);
    --radius: 24px;
    --head: 'Space Grotesk', system-ui, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--neon); color: #000; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.neon { color: var(--neon); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, border-color .2s, color .2s; white-space: nowrap; }
.btn-neon { background: var(--neon); color: #000; padding: 15px 26px; }
.btn-neon:hover { box-shadow: 0 0 36px rgba(200, 255, 0, 0.35); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); padding: 14px 24px; color: var(--text); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

/* Navigation */
.nav { position: fixed; inset: 16px 0 auto; z-index: 50; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 22px; border-radius: 20px; background: rgba(14, 14, 15, 0.72); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-bar .logo { height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; font-family: var(--head); font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-neon { padding: 11px 18px; font-size: 14px; border-radius: 12px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { display: none; margin-top: 8px; padding: 12px; border-radius: 20px; background: rgba(14, 14, 15, 0.95); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--muted); font-family: var(--head); }
.mobile-menu a:hover { background: var(--card); color: var(--text); }
.mobile-menu.open { display: block; }
.nav-links a.nav-quiz, .mobile-menu a.nav-quiz { color: var(--neon); font-weight: 600; }

/* Page header shared by the blog index and posts */
.page-head { position: relative; padding: 160px 0 56px; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 10%, transparent 70%); opacity: .5; pointer-events: none; }
.page-head::after { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(200, 255, 0, 0.08); filter: blur(110px); top: -120px; right: -120px; pointer-events: none; }
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 18px 0 18px; letter-spacing: -0.03em; }
.page-head .lede { color: var(--muted); font-size: 18px; max-width: 620px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--faint); margin-bottom: 28px; transition: color .2s; }
.back:hover { color: var(--neon); }
.post-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.post-meta span { font-size: 13px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }

/* Blog index */
.blog-hero h1 { font-size: clamp(48px, 8vw, 96px); text-transform: uppercase; letter-spacing: -0.045em; line-height: .92; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 112px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.post-card:hover { border-color: rgba(200, 255, 0, 0.35); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(200, 255, 0, 0.06); }
.post-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-high); }
.post-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 9, 0) 45%, rgba(8, 8, 9, 0.55) 100%); pointer-events: none; }
.post-card:hover .post-art img { transform: scale(1.04); }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h2 { font-size: 21px; line-height: 1.2; transition: color .2s; }
.post-card:hover h2 { color: var(--neon); }
.post-body p { color: var(--muted); font-size: 14px; flex: 1; }
.post-body .read { font-size: 13px; font-weight: 700; color: var(--neon); margin-top: 8px; }
.post-card.featured { grid-column: span 2; flex-direction: row; }
.post-card.featured .post-art { aspect-ratio: auto; flex: 1.1; min-height: 280px; }
.post-card.featured .post-body { flex: 1; justify-content: center; padding: 36px; }
.post-card.featured h2 { font-size: 30px; }

/* Article typography */
.prose { padding-bottom: 72px; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { color: rgba(255, 255, 255, 0.72); font-size: 18px; line-height: 1.75; }
.prose strong { color: #fff; font-weight: 600; }
.prose em { color: rgba(255, 255, 255, 0.8); }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 22px; margin-top: 1.8em; }
.prose h4 { font-size: 18px; margin-top: 1.6em; color: var(--neon); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--neon); }
.prose ol li::marker { color: var(--neon); font-family: var(--head); font-weight: 700; }
.prose a { color: var(--neon); text-decoration: underline; text-decoration-color: rgba(200, 255, 0, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--neon); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 20px 24px; border-left: 3px solid var(--neon); background: var(--card); border-radius: 0 16px 16px 0; color: var(--muted); font-style: italic; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.prose th { background: var(--card); color: var(--neon); text-align: left; padding: 14px 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.prose td { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.prose code { font-size: .9em; background: var(--card-high); padding: 2px 6px; border-radius: 6px; }

/* End-of-post call to action */
.post-cta { position: relative; overflow: hidden; margin-bottom: 96px; padding: 48px 40px; border-radius: 32px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.post-cta::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(200, 255, 0, 0.12); filter: blur(100px); left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.post-cta > * { position: relative; }
.post-cta h2 { font-size: clamp(32px, 5vw, 48px); text-transform: uppercase; letter-spacing: -0.03em; margin: 14px 0 12px; }
.post-cta p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }
.post-cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Section jump links (support categories, legal sections) */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.toc a { font-size: 13px; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .2s, color .2s; }
.toc a:hover { border-color: var(--neon); color: var(--neon); }

/* Support FAQ */
.faq-group { padding-bottom: 8px; }
.faq-group h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 18px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-top: 10px; transition: border-color .2s; }
.faq[open] { border-color: rgba(200, 255, 0, 0.3); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--neon); font-size: 18px; font-weight: 400; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; }
.faq-body > * + * { margin-top: .8em; }
.faq-body p, .faq-body li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-body ul { padding-left: 1.3em; margin: .6em 0 0; }
.faq-body li + li { margin-top: .35em; }
.faq-body ul li::marker { color: var(--neon); }
.faq-body strong { color: #fff; }
.faq-body a { color: var(--neon); }

/* Legal documents */
.doc-meta { color: var(--faint); font-size: 14px; }
.lang-switcher { position: relative; }
.lang-switcher select { appearance: none; -webkit-appearance: none; background: var(--card); color: var(--text); border: 1px solid var(--line-strong); padding: 11px 38px 11px 14px; border-radius: 12px; font: inherit; font-size: 14px; cursor: pointer; }
.lang-switcher select:hover, .lang-switcher select:focus { border-color: var(--neon); outline: none; }
.lang-switcher::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.legal h2, .legal .anchor-alias { scroll-margin-top: 110px; }
.legal p, .legal li { font-size: 16px; }
.callout { background: var(--card); border-left: 3px solid var(--neon); border-radius: 0 16px 16px 0; padding: 18px 22px; }
[dir="rtl"] .prose ul, [dir="rtl"] .faq-body ul { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .callout { border-left: 0; border-right: 3px solid var(--neon); border-radius: 16px 0 0 16px; }
[dir="rtl"] .lang-switcher select { padding: 11px 14px 11px 38px; }
[dir="rtl"] .lang-switcher::after { right: auto; left: 16px; }

/* Footer */
footer { padding: 0 0 48px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 40px; }
.foot .logo { height: 22px; width: auto; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--neon); }
.foot small { color: var(--faint); font-size: 13px; }

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .menu-btn { display: inline-flex; }
    .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .page-head { padding-top: 130px; }
    .posts { grid-template-columns: 1fr; }
    .post-card.featured { grid-column: auto; flex-direction: column; }
    .post-card.featured .post-art { min-height: 0; aspect-ratio: 16 / 9; }
    .post-card.featured .post-body { padding: 24px; }
    .post-card.featured h2 { font-size: 22px; }
    .prose p, .prose li { font-size: 17px; }
    .post-cta { padding: 40px 24px; }
}
@media (max-width: 700px) {
    .prose table { font-size: 14px; }
    .prose th, .prose td { padding: 12px 10px; }
    .toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
    .toc::-webkit-scrollbar { display: none; }
    .toc a { flex: none; }
}
@media (max-width: 560px) {
    .nav-cta .btn-neon { display: none; }
    .nav-bar { padding-left: 16px; }
    .lang-switcher select { max-width: 150px; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .post-card, .btn, .post-art img { transition: none; }
}
.foot .lang-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.foot .lang-links a { color: var(--faint); }
.foot .lang-links a:hover, .foot .lang-links a[aria-current] { color: var(--neon); }

/* Padel level quiz */
.quiz-wrap { padding-bottom: 56px; scroll-margin-top: 110px; }
.quiz { scroll-margin-top: 110px; }
.quiz { display: grid; gap: 18px; }
.quiz-q { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.quiz-q legend { display: flex; align-items: center; gap: 12px; padding: 0 6px; color: var(--text); font-size: 18px; font-weight: 600; }
.quiz-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--neon); color: #000; font-size: 14px; font-weight: 800; flex: none; }
.quiz-option { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; }
.quiz-option:hover { border-color: var(--line-strong); }
.quiz-option:has(input:checked) { border-color: var(--neon); color: var(--text); }
.quiz-option input { margin-top: 5px; accent-color: #C8FF00; flex: none; }
.quiz-note { color: var(--muted); }
.quiz-result { scroll-margin-top: 110px; padding: 40px 36px; border: 1px solid var(--line); border-radius: 32px; background: var(--card); text-align: center; }
.quiz-result p { color: var(--muted); max-width: 560px; margin: 12px auto 0; }
.quiz-rating { font-family: var(--head); font-size: clamp(44px, 8vw, 72px); font-weight: 700; color: var(--neon) !important; margin: 10px auto 4px !important; }
.quiz-level strong { display: block; font-family: var(--head); font-size: 26px; color: var(--text); }
.quiz-level span { color: var(--muted); }
.quiz-result .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.quiz-progress { display: grid; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.quiz-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 0; background: var(--neon); border-radius: 999px; transition: width .3s ease; }
.quiz.is-stepper .quiz-q { display: none; }
.quiz.is-stepper .quiz-q.is-current { display: block; animation: quiz-in .25s ease; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(12px); } }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.quiz-nav .btn:disabled { opacity: .45; cursor: not-allowed; }
.quiz-friend { margin: 0 0 18px; padding: 16px 20px; border: 1px solid var(--neon); border-radius: 16px; background: var(--neon-soft); color: var(--text); font-weight: 600; }
.quiz-vs { color: var(--text) !important; font-weight: 600; }
.quiz-share { margin: 28px auto 20px; padding: 24px; max-width: 560px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(200, 255, 0, 0.04); }
.quiz-share strong { display: block; font-family: var(--head); font-size: 20px; color: var(--text); }
.quiz-share p { margin-top: 6px; }
.quiz-share .actions { margin-top: 18px; }
.quiz[hidden], .quiz-result[hidden], .quiz-level[hidden], .quiz-progress[hidden], .quiz-friend[hidden], .quiz-vs[hidden], .quiz-nav .btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .quiz.is-stepper .quiz-q.is-current { animation: none; } .quiz-bar span { transition: none; } }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
button.btn-ghost { background: transparent; }
