/* ===================================
   Apex Skill Academy – Books section
   Mirrors the design tokens used on the home page.
   =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --electric-cyan: #00f3ff;
    --deep-violet: #7000ff;
    --charcoal: #0a0a0a;
    --dark-gray: #1a1a1a;
    --light-gray: #e0e0e0;
    --highlight-gold: #ffd700;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--charcoal);
    color: var(--light-gray);
    overflow-x: hidden;
    position: relative;
    line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; line-height: 1.25; }

a { color: var(--electric-cyan); }
a:focus-visible, button:focus-visible { outline: 3px solid #ffffff; outline-offset: 4px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 0.75rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }

.nebula-bg {
    position: fixed; inset: 0; z-index: -1;
    background: radial-gradient(ellipse at 20% 30%, rgba(112, 0, 255, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 70%, rgba(0, 243, 255, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(112, 0, 255, 0.08) 0%, transparent 70%);
    animation: nebula-float 20s ease-in-out infinite;
}
@keyframes nebula-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) { .nebula-bg { animation: none; } }

.gradient-text {
    background: linear-gradient(135deg, var(--electric-cyan) 0%, var(--deep-violet) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Navigation (same as home page) */
nav.site-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 1rem 0;
}
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; text-decoration: none; }
.nav-links { display: flex; gap: clamp(0.65rem, 1.2vw, 1.2rem); list-style: none; align-items: center; }
.nav-links a { color: var(--light-gray); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--electric-cyan); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--electric-cyan), var(--deep-violet)); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; width: 100%; background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(20px); padding: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); z-index: 999; }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; color: var(--light-gray); text-decoration: none; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--electric-cyan); }
@media (max-width: 1100px) { .nav-links { display: none; } .mobile-menu-btn { display: block; } }

/* Buttons */
.btn-neon, .btn-glass, .btn-amazon {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 14px 32px; font-size: 1.05rem; font-weight: 700; border-radius: 50px;
    text-decoration: none; transition: all 0.3s ease; color: #fff; min-height: 52px; text-align: center;
}
.btn-neon { background: linear-gradient(135deg, var(--electric-cyan) 0%, var(--deep-violet) 100%); }
.btn-neon:hover { transform: scale(1.04); box-shadow: 0 0 40px rgba(0, 243, 255, 0.6); }
.btn-glass { background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.25); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--electric-cyan); transform: scale(1.04); }
.btn-amazon { background: var(--highlight-gold); color: #111; }
.btn-amazon:hover { background: #ffe55c; transform: scale(1.04); box-shadow: 0 0 30px rgba(255, 215, 0, 0.45); }
.btn-amazon .btn-sub, .btn-neon .btn-sub, .btn-glass .btn-sub { display: block; font-size: 0.78rem; font-weight: 600; opacity: 0.85; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }

/* Layout */
main { padding-top: 6rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 3.5rem 0; }

.breadcrumbs { font-size: 0.9rem; margin-bottom: 1.5rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.4rem; color: rgba(224, 224, 224, 0.5); }
.breadcrumbs a { color: rgba(224, 224, 224, 0.8); text-decoration: none; }
.breadcrumbs a:hover { color: var(--electric-cyan); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--electric-cyan); }

.eyebrow { color: var(--electric-cyan); font-weight: 600; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.9rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.page-hero .lede { font-size: 1.15rem; color: rgba(224, 224, 224, 0.88); max-width: 820px; }
.page-hero .subtitle { font-size: clamp(1.1rem, 2.5vw, 1.45rem); color: #fff; font-weight: 500; margin-bottom: 1rem; font-family: 'Space Grotesk', sans-serif; }

.glass-card {
    background: rgba(26, 26, 26, 0.7); backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.2); border-radius: 24px; padding: 2rem;
}

.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
.section-intro { color: rgba(224, 224, 224, 0.85); max-width: 820px; margin-bottom: 2rem; }

.fact-list { list-style: none; display: grid; gap: 0.6rem; }
.fact-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.fact-list li:last-child { border-bottom: none; }
.fact-list .k { color: rgba(224, 224, 224, 0.65); font-size: 0.92rem; }
.fact-list .v { color: #fff; font-weight: 500; }

.book-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.buy-box { position: sticky; top: 6.5rem; border-color: rgba(255, 215, 0, 0.45); }
.buy-box h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.buy-box p.buy-hint { color: rgba(224, 224, 224, 0.8); font-size: 0.92rem; margin-bottom: 1.2rem; }
.buy-buttons { display: grid; gap: 0.85rem; }
.buy-buttons a { justify-content: flex-start; width: 100%; border-radius: 16px; }
.buy-note { margin-top: 1rem; font-size: 0.82rem; color: rgba(224, 224, 224, 0.65); }

.notice {
    display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.5rem;
    padding: 0.9rem 1.1rem; border-radius: 14px; border: 1px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.1); color: #fff3b0; font-weight: 600;
}

.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.topic-grid .glass-card { padding: 1.5rem; }
.topic-grid h3 { font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; gap: 0.6rem; align-items: center; }
.topic-grid h3 i { color: var(--electric-cyan); }
.topic-grid p { color: rgba(224, 224, 224, 0.82); font-size: 0.95rem; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.check-list { list-style: none; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: rgba(224, 224, 224, 0.9); }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--electric-cyan); font-weight: 700; }

.faq-list { display: grid; gap: 1rem; }
.faq-list details { background: rgba(26, 26, 26, 0.7); border: 1px solid rgba(0, 243, 255, 0.2); border-radius: 16px; padding: 1.1rem 1.4rem; }
.faq-list summary { cursor: pointer; font-weight: 600; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; }
.faq-list details[open] summary { color: var(--electric-cyan); margin-bottom: 0.6rem; }
.faq-list p { color: rgba(224, 224, 224, 0.85); }

/* Hub cards */
.book-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.book-card { display: flex; flex-direction: column; gap: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.book-card:hover { border-color: rgba(0, 243, 255, 0.5); box-shadow: 0 0 40px rgba(0, 243, 255, 0.2); }
.book-card .tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(0, 243, 255, 0.4); color: var(--electric-cyan); background: rgba(0, 243, 255, 0.08); }
.tag.gold { border-color: rgba(255, 215, 0, 0.5); color: var(--highlight-gold); background: rgba(255, 215, 0, 0.1); }
.book-card h2 { font-size: 1.6rem; }
.book-card h2 a { color: #fff; text-decoration: none; }
.book-card h2 a:hover { color: var(--electric-cyan); text-decoration: underline; }
.book-card p { color: rgba(224, 224, 224, 0.85); }
.book-card .card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; }
.book-card .card-actions a { padding: 12px 22px; font-size: 0.95rem; min-height: 48px; }

.related { text-align: center; }
.related .btn-glass { margin-top: 1rem; }

/* Footer (same as home page) */
footer { background: rgba(10, 10, 10, 0.95); border-top: 1px solid rgba(0, 243, 255, 0.2); padding: 4rem 2rem 2rem; margin-top: 3rem; }
.footer-content { max-width: 1400px; margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.footer-section h3 { margin-bottom: 1.5rem; color: var(--electric-cyan); font-size: 1.25rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.75rem; }
.footer-section a, .footer-section li { color: rgba(224, 224, 224, 0.8); text-decoration: none; transition: all 0.3s ease; }
.footer-section a:hover { color: var(--electric-cyan); padding-left: 5px; }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(0, 243, 255, 0.15); text-align: center; color: rgba(224, 224, 224, 0.6); }
.footer-bottom a { color: rgba(0, 243, 255, 0.8); text-decoration: none; }

@media (max-width: 900px) {
    .book-hero { grid-template-columns: 1fr; }
    .buy-box { position: static; }
}
@media (max-width: 600px) {
    .container { padding: 0 1.1rem; }
    .fact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
    .book-card .card-actions a { width: 100%; }
    .glass-card { padding: 1.4rem; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
