/* =============================================
   DEPRECATED - Book Promotion Site Styles
   ============================================= */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --accent: #ff3b3b;
    --accent-dim: #cc2222;
    --accent-glow: rgba(255, 59, 59, 0.15);
    --green: #00cc66;
    --blue: #3388ff;
    --border: #222235;
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.book-page {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glitch overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* Navigation */
.book-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.deprecated-mark {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.15em;
}

.deprecated-mark.small {
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-haven-link {
    color: var(--blue) !important;
    border: 1px solid var(--blue);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem !important;
}

.nav-haven-link:hover {
    background: rgba(51, 136, 255, 0.1);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 4rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-tagline {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    margin-bottom: 0.5rem;
}

.title-deprecated {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    display: block;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-haven {
    background: #1a5276;
    color: white;
    border: 1px solid #2980b9;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-haven:hover {
    background: #2980b9;
}

/* Terminal */
.hero-terminal {
    flex: 1;
    max-width: 550px;
    background: #0d0d14;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #1a1a25;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28ca41; }

.terminal-title {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.terminal-body {
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-line {
    opacity: 0;
    animation: terminalFadeIn 0.3s forwards;
}

.terminal-line[data-delay="0"] { animation-delay: 0.5s; }
.terminal-line[data-delay="1"] { animation-delay: 1.5s; }
.terminal-line[data-delay="2"] { animation-delay: 2.5s; }
.terminal-line[data-delay="3"] { animation-delay: 3.5s; }
.terminal-line[data-delay="4"] { animation-delay: 5s; }
.terminal-line[data-delay="5"] { animation-delay: 6s; }
.terminal-line[data-delay="6"] { animation-delay: 7s; }
.terminal-line[data-delay="7"] { animation-delay: 8s; }

@keyframes terminalFadeIn {
    to { opacity: 1; }
}

.terminal-prompt {
    color: var(--green);
    margin-right: 0.5rem;
}

.terminal-text {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 1.2rem;
}

.terminal-output.error {
    color: var(--accent);
}

.terminal-cursor {
    color: var(--green);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Sections */
.section {
    padding: 5rem 4rem;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Books */
.books-section {
    background: var(--bg-card);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.book-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    transition: all 0.3s;
}

.book-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.book-card:hover {
    transform: translateY(-4px);
    border-color: var(--text-muted);
}

.book-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--border);
    margin-bottom: 0.5rem;
}

.book-card.active .book-number {
    color: var(--accent);
}

.book-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.book-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.book-card.active .book-status {
    color: var(--accent);
}

.book-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* World */
.world-section {
    text-align: center;
}

.world-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.world-cta {
    margin: 2rem 0;
}

.world-disclaimer {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.world-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.world-links a {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(51, 136, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s;
}

.world-links a:hover {
    background: rgba(51, 136, 255, 0.1);
    border-color: var(--blue);
}

/* Footer */
.book-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 4rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-quote {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    max-width: 400px;
    text-align: right;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.footer-easter-egg a {
    color: var(--blue);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 6rem 2rem 3rem;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .title-deprecated {
        font-size: 2.5rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .world-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-quote {
        text-align: left;
    }
}
