:root {
    --bg-dark: #070707;
    --bg-darker: #000000;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent-red: #8a0303;
    --accent-red-hover: #b30000;
    --gold: #c5a059;
    --gold-hover: #e3bc6b;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Classes */
.cinzel-font {
    font-family: 'Cinzel', serif;
}

.playfair-font {
    font-family: 'Playfair Display', serif;
}

.text-red {
    color: var(--accent-red);
}

.text-gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

.italic-desc {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.w-100 {
    width: 100%;
}

.relative {
    position: relative;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    padding: 12px 30px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    box-shadow: 0 0 20px rgba(138, 3, 3, 0.6);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--gold);
    padding: 12px 30px;
    border: 1px solid var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 2px;
    text-align: center;
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
}

/* Divider */
.divider {
    width: 60px;
    height: 2px;
    background: var(--accent-red);
    margin: 20px auto 40px;
}

.divider.left {
    margin: 20px 0 40px;
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.age-gate-box {
    background: #0f0f0f;
    padding: 3rem;
    border: 1px solid var(--accent-red);
    max-width: 500px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(138, 3, 3, 0.3);
    animation: scaleIn 0.5s ease-out forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.age-gate-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.age-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.age-error {
    color: var(--accent-red);
    margin-top: 15px;
    font-weight: bold;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1a0000 0%, #000000 80%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-dark) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 5px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: rgba(197, 160, 89, 0.1);
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.sub-tagline {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Books Section */
.books-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-dark);
}

.section-title {
    font-size: 3rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.books-grid.grid-3-cols {
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    justify-content: center;
}

.books-grid.grid-5-cols {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    justify-content: center;
    gap: 30px;
}

@media (max-width: 1400px) {
    .books-grid.grid-5-cols {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 1024px) {
    .books-grid.grid-3-cols {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.collection-title {
    font-size: 2rem;
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.collection-divider {
    width: 100px;
    height: 1px;
    background: rgba(197, 160, 89, 0.3);
    margin: 40px auto;
}

/* Tabs Navigation */
.series-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
}

.tab-btn {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 24px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.tab-btn.active {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
    font-weight: bold;
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-card {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(138, 3, 3, 0.2);
}

.book-cover-container {
    height: auto;
    aspect-ratio: 2 / 3;
    position: relative;
    background: #111;
    padding: 15px;
}

/* CSS Book Cover Styling */
.css-book {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 2px 12px 12px 2px;
    box-shadow:
        inset 4px 0 10px rgba(0, 0, 0, 0.8),
        inset -1px 0 2px rgba(255, 255, 255, 0.2),
        10px 10px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.5s ease;
}

.css-book::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(0, 0, 0, 0.5) 15%,
            transparent 100%);
    z-index: 2;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.css-book.victorian {
    background: linear-gradient(135deg, #300000 0%, #0a0a0a 100%);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%),
        repeating-linear-gradient(45deg, #300000 0%, #200000 5%, #100000 10%);
}

.css-book.modern {
    background: linear-gradient(135deg, #050511 0%, #000000 100%);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(138, 3, 3, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.book-cover-title {
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    z-index: 3;
    line-height: 1.2;
}

.book-decor {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
    z-index: 3;
}

.book-cover-author {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    opacity: 0.9;
    z-index: 3;
    position: absolute;
    bottom: 20px;
}

.book-card:hover .css-book {
    transform: scale(1.02);
}

.real-book-cover {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    object-fit: cover;
    border-radius: 2px 12px 12px 2px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.5s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.book-card:hover .real-book-cover {
    transform: scale(1.02);
}

.book-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.spicy-level {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--accent-red);
}

.book-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.genre-tag {
    color: var(--accent-red);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.book-title {
    font-size: 1.8rem;
    margin: 10px 0 15px;
}

.book-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    /* Limit height and add scrolling for long descriptions */
    max-height: 250px;
    overflow-y: auto;
    /* Add padding to the right for the scrollbar */
    padding-right: 10px;
    flex-grow: 1;
}

/* Custom scrollbar for book descriptions */
.book-desc::-webkit-scrollbar {
    width: 6px;
}

.book-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.book-desc::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.book-desc::-webkit-scrollbar-thumb:hover {
    background: #a38245;
}

.tropes-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: auto;
    /* Push to bottom */
}

.tropes-list li {
    background: rgba(138, 3, 3, 0.15);
    border: 1px solid var(--accent-red);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.warning-text {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 25px;
    font-weight: bold;
}

/* Series/Collane Section */
.series-section {
    padding: 100px 0;
    background: #050505;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.series-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.series-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.series-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(138, 3, 3, 0.3);
    padding-bottom: 10px;
}

.series-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.series-completed {
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.standalone-series {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.book-list {
    list-style: none;
    padding-left: 0;
}

.book-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.book-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.book-list li:hover {
    color: var(--gold);
}

.book-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.book-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: #000;
    position: relative;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(138, 3, 3, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 4px;
    max-width: 800px;
    backdrop-filter: blur(10px);
}

.glass-panel h2 {
    font-size: 2.8rem;
}

.glass-panel p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.social-title {
    margin-top: 40px;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: #050505;
    position: relative;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.newsletter-box {
    text-align: center;
    padding: 50px 40px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.newsletter-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: #030303;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer .logo {
    display: block;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

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

.disclaimer {
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    border: 1px solid rgba(138, 3, 3, 0.3);
    background: rgba(138, 3, 3, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .glass-panel {
        padding: 30px;
    }

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