/* public/assets/css/styles.css */

:root {
    --royal-dark: #2E0249;
    /* Deep Purple */
    --royal-light: #570A57;
    --accent-gold: #D4AF37;
    /* Metallic Gold */
    --text-body: #444;
    --off-white: #F9F9F9;
}

/* --- LENIS SCROLL FIXES (AGGRESSIVE OVERRIDE) --- */
html.lenis,
html.lenis body {
    height: auto !important;
    overflow: auto !important;
    /* Forces the scrollbar to appear */
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
    /* Disables native smooth scroll so Lenis works */
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
    /* Prevents sticky iframes while scrolling */
}

/* Force body to be scrollable */
html,
body {
    width: 100%;
    /* Removed min-height: 100% to let Lenis calculate height naturally */
    overflow-x: hidden;
}

/* --- 3. PREMIUM CUSTOM SCROLLBAR --- */
/* Works on Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--royal-dark);
    /* Your Purple */
    border-radius: 5px;
    border: 2px solid #f1f1f1;
    /* Creates a nice padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
    /* Your Gold on hover */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--off-white);
    color: var(--text-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.navbar-brand,
.profile-title,
.comic-title {
    font-family: 'Cinzel', serif;
}

/* --- Global Navbar --- */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--accent-gold);
    /* Updated to match your profile preference */
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--royal-dark);
}

.navbar-brand span {
    color: var(--accent-gold);
}

.nav-link {
    color: var(--royal-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin: 0 10px;
}

.btn-join {
    background-color: var(--royal-dark);
    color: var(--accent-gold);
    border: 1px solid var(--royal-dark);
    padding: 8px 25px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-join:hover {
    background: transparent;
    color: var(--royal-dark);
}

/* --- Footer --- */
.footer {
    background: var(--royal-dark);
    color: white;
    padding: 80px 0 0;
    border-top: 5px solid var(--accent-gold);
}

.footer-bar {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
}

/* --- Shared/Home Components --- */
.launch-badge {
    background: var(--accent-gold);
    color: var(--royal-dark);
    padding: 5px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.comic-card {
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
}

.comic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 2, 73, 0.2);
}

.comic-img {
    height: 400px;
    object-fit: cover;
    width: 100%;
    filter: grayscale(20%);
    transition: 0.5s;
}

.comic-card:hover .comic-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.comic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, var(--royal-dark), transparent);
    color: white;
}

.comic-info h4 {
    color: var(--accent-gold);
    margin-bottom: 5px;
}

/* --- Profile Specific Styles (From your code) --- */
.profile-header {
    position: relative;
    background: var(--royal-dark);
    color: white;
    padding: 80px 0 100px;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.role-badge {
    background: var(--accent-gold);
    color: var(--royal-dark);
    padding: 5px 15px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
}

.profile-quote {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.8;
    border-left: 3px solid var(--accent-gold);
    padding-left: 20px;
    margin-top: 30px;
}

.profile-content {
    margin-top: -80px;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.profile-image-card {
    background: white;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(10%);
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 40px;
}

.bio-text p {
    margin-bottom: 20px;
}

.drop-cap::first-letter {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 5px;
    color: var(--royal-dark);
}

/* --- Comic Reader --- */
.comic-section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 40px;
    border-top: 5px solid var(--royal-dark);
}

.comic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.comic-title {
    font-size: 1.5rem;
    color: var(--royal-dark);
}

.btn-download {
    background: var(--royal-dark);
    color: white;
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: none;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--accent-gold);
    color: var(--royal-dark);
}

.pdf-placeholder {
    background: #f4f4f4;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    color: #888;
}

/* Back Link (Added from your snippet) */
.back-link {
    color: white;
    /* Changed to white because it's inside the dark header now */
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
    margin-bottom: 20px;
    opacity: 0.7;
}

.back-link:hover {
    color: var(--accent-gold);
    transform: translateX(-5px);
    opacity: 1;
}

/* --- UPDATED Profile Header Spacing --- */
.profile-header {
    /* Increased top padding to 150px to clear the fixed navbar */
    padding: 150px 0 100px;
    background: var(--royal-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

/* --- NEW: Comic List Grid --- */
.comic-issue-card {
    border: none;
    transition: all 0.3s ease;
    background: transparent;
}

.comic-issue-card:hover {
    transform: translateY(-5px);
}

.issue-cover-wrapper {
    position: relative;
    border-radius: 5px;
    /* Slight curve like a book spine */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    /* border-left: 5px solid rgba(255, 255, 255, 0.2); */
    /* Book spine effect */
}

.issue-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.5s;
}

.comic-issue-card:hover .issue-cover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.issue-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-gold);
    color: #fff;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 3px 10px;
    text-transform: uppercase;
}

/* --- NEW: Vertical Timeline --- */
.timeline-section {
    position: relative;
    padding-left: 30px;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    /* Align with line */
    width: 14px;
    height: 14px;
    background: var(--accent-gold);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent-gold);
}

.timeline-year {
    font-weight: 800;
    color: var(--royal-dark);
    font-family: 'Cinzel', serif;
    margin-bottom: 5px;
    display: block;
}

/* --- NEW: Video Section --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(46, 2, 73, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* --- Header Layout Fixes --- */

.header-section {
    position: relative;
    /* Default for Mobile: Stacked vertically, Light background */
    background-color: var(--off-white);
    padding-top: 80px;
    /* Space for fixed navbar */
    overflow: hidden;
}

.hero-text-box {
    padding: 40px 20px;
    position: relative;
    margin-right: 50px;
    z-index: 2;
}

.hero-img-box {
    width: 100%;
    height: 300px;
    /* Height for mobile */
    background: url('https://images.unsplash.com/photo-1616091216791-a5360b5fc78a?q=80&w=900&auto=format&fit=crop') center/cover;
    position: relative;
}



.testimonial-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-top: 5px solid var(--accent-gold);
    /* The Royal Touch */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 2, 73, 0.1);
}

.quote-icon-bg {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.15;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    /* Gold Ring */
    padding: 2px;
    background: white;
}

.book-shadow {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2),
        inset 1px 0 2px rgba(255, 255, 255, 0.4);
}

.hover-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.transition-all {
    transition: all 0.3s ease;
}


.premium-page-btn:focus {
    box-shadow: none;
}

/* Base Button Style */
.premium-page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    /* Subtle border */
    color: var(--royal-dark);
    font-family: 'Cinzel', serif;
    /* Premium Font */
    font-weight: 700;
    border-radius: 50% !important;
    /* Perfect Circles */
    background: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    font-size: 0.9rem;
}

/* Hover State */
.premium-page-btn:hover:not(.dots):not(.disabled) {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
    background: white;
}

/* Active State (The Golden Circle) */
.page-item.active .premium-page-btn {
    background-color: var(--royal-dark);
    border-color: var(--royal-dark);
    color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(46, 2, 73, 0.2);
    /* Deep purple shadow */
    transform: scale(1.1);
}

/* Arrows (Next/Prev) */
.premium-page-btn.prev-next {
    border: none;
    background: transparent;
    font-size: 1.2rem;
}

.premium-page-btn.prev-next:hover {
    background: transparent;
    transform: translateX(5px);
    /* Move arrow slightly */
}

/* Reverse move for Previous arrow */
.page-item:first-child .premium-page-btn.prev-next:hover {
    transform: translateX(-5px);
}

/* Dots (...) */
.premium-page-btn.dots {
    border: none;
    background: transparent;
    cursor: default;
    letter-spacing: 2px;
}

/* --- PREMIUM BACK TO TOP BUTTON --- */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--royal-dark);
    /* Your Purple */
    color: var(--accent-gold);
    /* Your Gold */
    border: 1px solid #fff;
    border-radius: 50%;

    /* Centering the icon */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Aesthetics */
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;

    /* Animation Initial State (Hidden) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Shadow */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Visible State (Added by JS) */
.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Effect */
.btn-scroll-top:hover {
    background: var(--accent-gold);
    color: var(--royal-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    /* Gold Glow */
    transform: translateY(-5px);
    /* Lift up slightly */
}

/* Active/Click Effect */
.btn-scroll-top:active {
    transform: scale(0.9);
}

/* Deep Shadow for the main box */
.shadow-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Input Styling */
.premium-input {
    transition: all 0.3s ease;
}

.premium-input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    /* Gold Glow */
    color: var(--royal-dark);
}

/* Filter Chips (Premium Buttons) */
.filter-chip {
    border: 1px solid #eee;
    background: #fff;
    color: #666;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.filter-chip:hover {
    border-color: var(--accent-gold);
    color: var(--royal-dark);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--royal-dark);
    color: var(--accent-gold);
    border-color: var(--royal-dark);
    box-shadow: 0 4px 10px rgba(46, 2, 73, 0.3);
}

/* Inner Shadow for Input to make it look 'embedded' */
.shadow-inner-sm {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* --- Desktop Styles (Large Screens Only) --- */
@media (min-width: 992px) {
    .header-section {
        min-height: 90vh;
        /* Full height only on desktop */
        display: flex;
        align-items: center;
        /* The Split Background */
        background: linear-gradient(to right, var(--off-white) 50%, var(--royal-dark) 50%);
        padding-top: 0;
    }

    .hero-text-box {
        padding-right: 80px;
        /* Push text away from the center line */
        padding-left: 0;
        margin-top: 80px;
        /* Offset for navbar */
    }

    .hero-img-box {
        height: 600px;
        /* Taller image for desktop */
        box-shadow: -30px 30px 0px rgba(212, 175, 55, 0.2);
        /* Ensure image stays on the right side */
        margin-left: -12px;
        /* Pull slightly to cover bootstrap gutter */
    }
}

/* --- LENIS CRITICAL OVERRIDES (PASTE AT BOTTOM OF CSS) --- */
html.lenis,
html.lenis body {
    height: auto !important;
    min-height: 100vh !important;
    overflow: auto !important;
    /* Forces browser to recognize scrollable area */
}

/* Disable native smooth scroll to prevent conflicts */
html {
    scroll-behavior: auto !important;
}

/* Ensure the wrapper doesn't lock the scroll */
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Back to Top Button Visibility Fix */
.btn-scroll-top {
    z-index: 99999 !important;
    /* Ensure it sits on top of everything */
}