/* ===========================================
   Modern Ebook Store - Clean & Conversion Focused
   =========================================== */

:root {
    --primary: #DC2626;
    --primary-light: #EF4444;
    --primary-dark: #B91C1C;
    --bg-dark: #0A0A0A;
    --bg-card: #141414;
    --bg-elevated: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --border: #2A2A2A;
    --success: #22C55E;
    --gradient: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #DC2626 100%);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(220, 38, 38, 0.15);
    --radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-secondary); }

.highlight { color: var(--primary); }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.logo-subtitle {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover, .nav a.active { color: var(--primary); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.2s;
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top center, rgba(220, 38, 38, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    background: rgba(220, 38, 38, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Books Grid */
.ebooks { padding: 40px 0 80px; }

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.book-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 38, 38, 0.3);
}

.book-card.coming-soon { opacity: 0.7; }
.book-card.coming-soon:hover { opacity: 1; }

.book-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 10;
}

.book-badge.soon {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.book-image {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.03) 0%, transparent 100%);
    padding: 30px;
}

.book-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: var(--shadow), 0 0 60px rgba(220, 38, 38, 0.08);
}

.book-image.placeholder { background: var(--bg-elevated); }

.placeholder-icon { color: var(--text-muted); }

.book-content { padding: 28px; }

.book-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.book-content h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.book-content > p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.book-highlights {
    list-style: none;
    margin-bottom: 20px;
}

.book-highlights li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

.book-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: rgba(201, 162, 39, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Value Section */
.value-section {
    padding: 80px 0;
    background: var(--bg-card);
    text-align: center;
}

.value-section h2 { margin-bottom: 12px; }

.section-subtitle {
    max-width: 500px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.value-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.3);
}

.value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; }

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 { margin-bottom: 12px; position: relative; }
.cta-section > .container > p { margin-bottom: 32px; position: relative; }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.footer-logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.footer-brand p { font-size: 0.9rem; max-width: 300px; }

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.design-credit {
    font-size: 0.8rem;
}

.design-credit a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.design-credit a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-toggle { display: flex; }
    .nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-dark);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .hero { padding: 120px 0 60px; }

    .books-grid { grid-template-columns: 1fr; }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p { max-width: none; }

    .footer-social {
        gap: 12px;
    }

    .cta-buttons { flex-direction: column; align-items: center; }
}