@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #121212;
    --sidebar-bg: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #FF9933; /* Saffron */
    --gold-color: #D4AF37;
    --border-color: #333;
    --font-heading: 'Crimson Pro', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Sidebar Styling */
#sidebar {
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

#sidebar h1 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 0.5rem;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar li {
    margin-bottom: 0.8rem;
}

#sidebar a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

#sidebar a:hover {
    color: var(--accent-color);
}

/* Content Area */
#main-content {
    margin-left: 280px;
    padding: 4rem;
    max-width: 800px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--gold-color);
}

h4 {
    font-size: 1.2rem;
    margin-top: 2rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--gold-color);
}

.hamburger {
    display: none;
    color: var(--bg-color);
    font-size: 1.5rem;
}

.share-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--sidebar-bg);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Button Styling */
.next-chapter-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color) !important;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 153, 51, 0.3);
}

.next-chapter-btn:hover {
    background-color: var(--gold-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.active {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0;
        padding: 2rem;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--accent-color);
        border: none;
        padding: 0.5rem;
        border-radius: 4px;
        cursor: pointer;
    }
}
