/*
Theme Name: NovellaX
Theme URI: https://example.com/novellax-theme/
Author: Your Name
Author URI: https://example.com/
Description: A premium, futuristic storytelling theme for WordPress, based on the Dil Ki Kahani React prototype.
Version: 1.0.0
Requires at least: 5.2
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novellax
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*
=========================================
1. GLOBAL STYLES & VARIABLES
Based on the React Prototype
=========================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Inter', sans-serif;
    --color-background: #f8f7fa; /* Light purple/pink-ish background */
    --color-white: #ffffff;
    --color-text-primary: #1f2937; /* Dark Grey */
    --color-text-secondary: #6b7280; /* Medium Grey */
    --color-border: #e5e7eb; /* Light Grey Border */

    /* Gradient Colors */
    --gradient-pink: #ec4899;
    --gradient-purple: #8b5cf6;
    --gradient-amber: #f59e0b;
    --gradient-orange: #f97316;

    /* Box Shadow */
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/*
=========================================
2. GENERAL BODY & LAYOUT
=========================================
*/
body {
    background-color: var(--color-background);
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1280px; /* 7xl in Tailwind */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* More styles will be added here as we build components */

/*
=========================================
3. HEADER STYLES
=========================================
*/

#masthead {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding a.site-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px */
    text-decoration: none;
}

.site-branding .site-logo {
    background: linear-gradient(to right, var(--gradient-pink), var(--gradient-purple));
    padding: 0.75rem; /* 12px */
    border-radius: 0.75rem; /* 12px */
}

.site-branding .site-logo svg {
    color: var(--color-white);
    display: block;
}

.site-branding .site-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 800;
    margin: 0;
    line-height: 1;
    background: linear-gradient(to right, var(--gradient-pink), var(--gradient-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-branding .site-description {
    font-size: 0.75rem; /* 12px */
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1;
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem; /* 24px */
}

.main-navigation a {
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--gradient-pink);
}

/* Premium Button */
.header-actions .premium-button {
    background: linear-gradient(to right, var(--gradient-amber), var(--gradient-orange));
    color: var(--color-white);
    padding: 0.625rem 1.5rem; /* 10px 24px */
    border-radius: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    text-decoration: none;
}

/* Search Form */
.header-search {
    margin-top: 1rem;
    position: relative;
}

.header-search .search-form {
    width: 100%;
}

.header-search .search-field {
    width: 100%;
    background-color: #f9fafb; /* gray-50 */
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 3rem; /* padding for icon */
}

/* We will hide the default search button and use an icon instead */
.header-search .search-submit {
    display: none;
}

/*
=========================================
4. FOOTER STYLES
=========================================
*/
.site-footer {
    background-color: #111827; /* gray-900 */
    color: var(--color-white);
    padding-top: 3rem; /* 48px */
    padding-bottom: 3rem; /* 48px */
    margin-top: 4rem; /* 64px */
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem; /* 32px */
}

/* On medium screens (tablets), show 2 columns */
@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column .widget-title {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    margin-bottom: 1rem; /* 16px */
    color: var(--color-white);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 8px */
}

.footer-column a {
    color: #9ca3af; /* gray-400 */
    text-decoration: none;
    font-size: 0.875rem; /* 14px */
}

.footer-column a:hover {
    color: var(--color-white);
}

.site-info {
    border-top: 1px solid #374151; /* gray-800 */
    margin-top: 2rem; /* 32px */
    padding-top: 2rem; /* 32px */
    text-align: center;
    font-size: 0.875rem; /* 14px */
    color: #9ca3af; /* gray-400 */
}

.site-info p {
    margin: 0;
}

/*
=========================================
5. HOMEPAGE & STORY CARD STYLES
=========================================
*/

.page-header {
    margin-bottom: 1.5rem;
}
.page-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem; /* 24px */
}

/* On small screens (phones), show 2 columns */
@media (min-width: 640px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* On large screens (desktops), show 3 columns */
@media (min-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Individual Story Card */
.story-card {
    background-color: var(--color-white);
    border-radius: 1rem; /* 16px */
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image-container {
    position: relative;
    height: 14rem; /* 224px */
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.premium-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(to right, var(--gradient-amber), var(--gradient-orange));
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.premium-tag svg {
    width: 14px;
    height: 14px;
}

.story-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}
.story-category a {
    background-color: var(--gradient-pink);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}


.card-content {
    padding: 1.5rem; /* 24px */
}

.entry-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}
.entry-title a {
    text-decoration: none;
    color: var(--color-text-primary);
}

.entry-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.875rem; /* 14px */
    margin-bottom: 1rem;
}

.entry-meta {
    margin-bottom: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-info img {
    border-radius: 9999px;
}
.author-info .author-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}
.author-info .published-date {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.entry-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.story-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}
.story-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.story-stats svg {
    width: 16px;
    height: 16px;
}

.read-button {
    background: linear-gradient(to right, var(--gradient-pink), var(--gradient-purple));
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem; /* 8px */
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.read-button:hover {
    opacity: 0.9;
}

/*
=========================================
6. SINGLE POST / STORY READER STYLES
=========================================
*/

/* Hide sidebar and make content full-width on single posts */
.single-post #primary {
    width: 100%;
}
.single-post #secondary {
    display: none;
}

/* Header with background image */
.story-reader-header {
    position: relative;
    height: 70vh; /* 70% of the screen height */
    display: flex;
    align-items: flex-end;
    color: var(--color-white);
}

.story-reader-header .header-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.story-reader-header .header-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-reader-header .header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, transparent 100%);
    z-index: 2;
}

.story-reader-header .header-content {
    position: relative;
    z-index: 3;
    padding-bottom: 3rem;
}

.story-reader-header .entry-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-white);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .story-reader-header .entry-title {
        font-size: 4rem; /* Bigger title on larger screens */
    }
}

.story-reader-header .entry-meta .author-info {
    color: rgba(255,255,255,0.9);
}
.story-reader-header .entry-meta .author-info img {
    width: 40px;
    height: 40px;
}
.story-reader-header .post-details {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* Main Content Area */
.story-reader-content {
    max-width: 768px; /* Best width for reading */
    margin-top: -4rem; /* Pulls the content up over the image slightly */
    position: relative;
    z-index: 10;
}

.action-bar {
    background-color: var(--color-white);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.action-bar .story-stats {
    justify-content: flex-start;
}

.action-bar .like-button,
.action-bar .share-button {
    background-color: #f3f4f6; /* gray-100 */
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.story-reader-content .entry-content {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.entry-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

/* Comments Section Styling */
.comments-area {
    margin-top: 3rem;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.comments-title, .comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    background-color: #f9fafb;
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}
.comment-form .form-submit .submit {
    background: linear-gradient(to right, var(--gradient-pink), var(--gradient-purple));
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

/*
=========================================
7. PRICING PAGE STYLES
=========================================
*/

/* Adding color variables from React code */
:root {
    --color-accent: var(--gradient-amber); /* Using Amber for premium */
}

/* Forcing page to be full width */
.page-template-default #primary {
    width: 100%;
}

.wp-block-column.is-style-default {
    padding: 1.5rem;
}

.wp-block-columns.alignwide {
    gap: 1.5rem;
}

.wp-block-column[style*="border-color:var(--color-accent)"] {
    position: relative;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.premium-button .wp-block-button__link {
    background: linear-gradient(to right, var(--gradient-amber), var(--gradient-orange)) !important;
    color: var(--color-white) !important;
}

.author-button .wp-block-button__link {
    background: linear-gradient(to right, var(--gradient-pink), var(--gradient-purple)) !important;
    color: var(--color-white) !important;
}

.has-accent-color {
    color: var(--color-accent) !important;
}

.has-secondary-color {
    color: var(--color-text-secondary) !important;
}

.has-secondary-background-color {
    background-color: var(--color-text-secondary) !important;
}

.wp-block-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Adding custom checkmark icon before list items */
.wp-block-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #22c55e; /* green-500 */
}

/*
=========================================
8. SUBMIT STORY PAGE STYLES
=========================================
*/

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-field input[type="text"],
.form-field select,
.form-field textarea {
    width: 100%;
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-field input[type="text"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gradient-purple);
}

.form-field .author-button {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border: none;
    cursor: pointer;
}

/*
=========================================
9. MOBILE & RESPONSIVE STYLES
=========================================
*/

/* Mobile Menu Button */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.menu-toggle .icon-close {
    display: none;
}
.toggled .menu-toggle .icon-menu {
    display: none;
}
.toggled .menu-toggle .icon-close {
    display: block;
}


/* Responsive styles for screens smaller than 1024px (tablets and phones) */
@media (max-width: 1023px) {
    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .main-navigation,
    .header-actions {
        display: none; /* Hide desktop menu and premium button */
    }

    /* This is our mobile menu container */
    .main-navigation.toggled {
        display: block;
        position: absolute;
        top: 100%; /* Position it below the header */
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: var(--shadow-lg);
        padding: 1.5rem;
    }

    .main-navigation.toggled ul {
        flex-direction: column; /* Stack menu items vertically */
        align-items: center;
        width: 100%;
    }

    .main-navigation.toggled a {
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Show the premium button inside the mobile menu */
    .header-actions {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-border);
    }
    .main-navigation.toggled .header-actions {
        display: flex;
        justify-content: center;
    }
}

/*
=========================================
10. CONTENT LOCK STYLES
=========================================
*/

.content-lock-wrapper {
    background: linear-gradient(to top, var(--color-background) 80%, transparent 100%);
    position: relative;
    text-align: center;
    padding: 6rem 2rem 2rem 2rem;
    margin: -8rem -2.5rem -2.5rem -2.5rem; /* Negative margin to bleed out */
    border-radius: 0 0 0.75rem 0.75rem;
}

.content-lock-icon svg {
    color: var(--gradient-amber);
}

.content-lock-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.content-lock-text {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.content-lock-wrapper .premium-button {
    display: inline-block;
    text-decoration: none;
}

/*
=========================================
11. WP USER FRONTEND PLUGIN STYLES
=========================================
*/

/* General Form Container */
.wpuf-form-add {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.wpuf-form-add .wpuf-form-row {
    padding: 0;
}

/* Form Fields Label */
.wpuf-form-add .wpuf-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

/* Form Input fields, textarea, and select */
.wpuf-form-add input[type="text"],
.wpuf-form-add select,
.wpuf-form-add textarea {
    width: 100%;
    border: 2px solid var(--color-border) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-family: var(--font-sans) !important;
    font-size: 1rem !important;
    background-color: #f9fafb !important;
    box-shadow: none !important;
}

.wpuf-form-add textarea {
    min-height: 250px;
}

/* Featured Image Upload Button */
.wpuf-form-add .wpuf-feat-image-upload {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* Submit Button */
.wpuf-form-add .wpuf-submit-button {
    width: 100%;
    background: linear-gradient(to right, var(--gradient-pink), var(--gradient-purple)) !important;
    color: var(--color-white) !important;
    text-align: center;
    justify-content: center;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    border: none !important;
    cursor: pointer;
    font-weight: 700;
    border-radius: 0.5rem !important;
}

/*
=========================================
13. PRICING PAGE POLISH
=========================================
*/

/* Making columns relative for absolute positioning */
.pricing-column {
    position: relative;
    padding-top: 2rem !important; /* Space for icon */
}

/* Icon Styles */
.plan-icon-wrapper {
    width: 4rem; /* 64px */
    height: 4rem;
    border-radius: 9999px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-icon-wrapper svg {
    color: white;
}
.plan-icon-free {
    background-color: #e5e7eb; /* gray-200 */
}
.plan-icon-free svg {
    color: #4b5563; /* gray-600 */
}
.plan-icon-premium {
    background: linear-gradient(to right, var(--gradient-amber), var(--gradient-orange));
}
.plan-icon-author {
    background: linear-gradient(to right, var(--gradient-pink), var(--gradient-purple));
}

/* Most Popular Tag */
.most-popular-tag {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--gradient-amber), var(--gradient-orange));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* New Feature List Styles */
.plan-features {
    list-style: none !important;
    padding: 0 !important;
}
.plan-features li {
    padding-left: 2rem !important;
    position: relative;
    margin-bottom: 0.75rem !important;
}
.plan-features li::before {
    content: ''; /* Remove the default checkmark */
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 2px;
    background-size: contain;
    background-repeat: no-repeat;
}
.plan-features .feature-included::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2322c55e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
}
.plan-features .feature-excluded {
    color: var(--color-text-secondary) !important;
    text-decoration: line-through;
}
.plan-features .feature-excluded::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
}

/*
=========================================
15. WPFORMS PLUGIN STYLING
=========================================
*/

/* Style the form container */
div.wpforms-container-full .wpforms-form {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    max-width: 800px;
    margin: 0 auto;
}

/* Style the labels */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

/* Style the input fields, textarea */
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form textarea {
    width: 100%;
    border: 2px solid var(--color-border) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-family: var(--font-sans) !important;
    font-size: 1rem !important;
    background-color: #f9fafb !important;
    box-shadow: none !important;
}

/* Style the submit button */
div.wpforms-container-full .wpforms-form button[type="submit"] {
    width: 100%;
    background: linear-gradient(to right, var(--gradient-pink), var(--gradient-purple)) !important;
    color: var(--color-white) !important;
    text-align: center;
    justify-content: center;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    border: none !important;
    cursor: pointer;
    font-weight: 700;
    border-radius: 0.5rem !important;
}

/*
=========================================
16. EPISODIC SERIES LIST STYLES
=========================================
*/
.series-episodes-wrapper {
    margin-top: 4rem;
    margin-bottom: 4rem;
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}
.series-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}
.episodes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.episode-item {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.episode-item a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--color-text-primary);
    gap: 1rem;
}
.episode-item:not(.locked-episode):hover {
    background-color: #f9fafb;
    border-color: var(--gradient-purple);
}
.episode-item .episode-number {
    font-weight: 700;
    color: var(--gradient-purple);
}
.episode-item .episode-title {
    flex-grow: 1; /* Take up remaining space */
    font-weight: 600;
}

/* Current Episode Style */
.current-episode {
    border-color: var(--gradient-purple);
    background-color: #f5f3ff; /* purple-50 */
}
.current-episode .episode-number {
    color: #fff;
    background-color: var(--gradient-purple);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Locked Episode Style */
.locked-episode {
    background-color: #f9fafb; /* gray-50 */
    color: #9ca3af; /* gray-400 */
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.locked-episode .episode-title {
    text-decoration: line-through;
}
.locked-episode .episode-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/*
=========================================
17. SERIES LANDING PAGE STYLES
=========================================
*/

/* Series Header with Poster Image */
.series-header {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    color: white;
    text-align: center;
}
.series-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.series-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent 100%);
    z-index: 2;
}
.series-header-content {
    position: relative;
    z-index: 3;
    padding-bottom: 3rem;
    max-width: 800px;
}
.series-page-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}
.series-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

/*
=========================================
18. NEW HOMEPAGE - SERIES GRID
=========================================
*/

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.series-card {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}
.series-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.series-card a {
    text-decoration: none;
    color: var(--color-text-primary);
}

.series-card-image {
    position: relative;
    height: 250px; /* Taller images for series */
    background-color: #e5e7eb;
}
.series-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
}

.series-card-content {
    padding: 1rem;
}

.series-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-chapter {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}
