/* ===================================
   The Cosmic Reader - Main Stylesheet
   =================================== */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #0a0e27;
    --light-color: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --cosmic-purple: #6d28d9;
    --cosmic-blue: #3b82f6;
    --cosmic-pink: #ec4899;
    --cosmic-cyan: #06b6d4;
    --cosmic-gold: #fbbf24;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    --gradient-cosmic: linear-gradient(135deg, #0a0e27 0%, #1e1b4b 25%, #312e81 50%, #4c1d95 75%, #6d28d9 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #312e81 50%, #4c1d95 75%, #6366f1 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(236, 72, 153, 0.1) 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --shadow-cosmic: 0 10px 40px rgba(99, 102, 241, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #f5f5f5;
    position: relative;
}

/* Comic Panel Style Sections */
.comic-panel {
    background: #fff;
    border: 4px solid #1a1a1a;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
    position: relative;
}

.comic-panel::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: repeating-linear-gradient(
        45deg,
        #ff6b6b,
        #ff6b6b 10px,
        #4ecdc4 10px,
        #4ecdc4 20px,
        #ffe66d 20px,
        #ffe66d 30px,
        #ff6b6b 30px,
        #ff6b6b 40px
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comic-panel:hover::before {
    opacity: 0.3;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Typography - Comic Style */
h1, h2 {
    font-family: 'Bangers', 'Righteous', 'Comic Neue', cursive;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3), 6px 6px 10px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 2.5rem;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2), 4px 4px 8px rgba(0, 0, 0, 0.15);
}

h3, h4, h5, h6 {
    font-family: 'Righteous', 'Comic Neue', cursive;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.2;
}

.comic-title {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-2 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-cosmic);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.navbar-brand i {
    font-size: 1.5rem;
    color: #fbbf24;
    transition: all 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

/* Footer Brand Styling */
footer .navbar-brand,
footer h5.fw-bold {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

footer .navbar-brand i,
footer h5 i.bi-stars,
footer h5 i.bi-book-half {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

footer h5:hover i.bi-stars,
footer h5:hover i.bi-book-half {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Navbar Buttons */
.navbar-nav .nav-item .nav-link.nav-btn {
    padding: 0.5rem 1.25rem;
    margin: 0 0.25rem;
    border-radius: 0;
    font-family: 'Bangers', cursive;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-nav .nav-item .nav-link.nav-btn-login {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.navbar-nav .nav-item .nav-link.nav-btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-item .nav-link.nav-btn-register {
    background: #ff4757;
    border: 2px solid #ff4757;
    color: #fff;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.25);
}

.navbar-nav .nav-item .nav-link.nav-btn-register:hover {
    background: #ff3838;
    border-color: #ff3838;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.35);
}

/* Fix dropdown menu in mobile navbar */
@media (max-width: 991.98px) {
    .navbar-collapse .dropdown-toggle {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 10 !important;
    }

    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        background-color: rgba(30, 41, 59, 0.98) !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .navbar-collapse .dropdown-item {
        color: rgba(255, 255, 255, 0.75) !important;
        padding: 0.75rem 1.5rem !important;
    }

    .navbar-collapse .dropdown-item:hover,
    .navbar-collapse .dropdown-item:focus {
        color: white !important;
        background-color: rgba(99, 102, 241, 0.2) !important;
    }

    .navbar-collapse .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.1) !important;
        margin: 0.5rem 0 !important;
    }

    .navbar-nav .nav-item.d-flex {
        flex-direction: column;
        width: 100%;
        margin: 0.5rem 0;
    }

    .navbar-nav .nav-item .nav-link.nav-btn {
        margin: 0.25rem 0 !important;
        width: 100%;
        text-align: center;
        display: block;
    }

    .navbar-nav .nav-item.d-flex.align-items-center {
        align-items: stretch !important;
    }
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 0;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.5rem;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Hero Section - Comic Style */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="comic-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23comic-dots)"/></svg>');
    opacity: 0.6;
    pointer-events: none;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    animation: cosmicPulse 8s ease-in-out infinite;
    opacity: 0.8;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.6), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starMove 20s linear infinite;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
    animation: overlayShift 10s ease-in-out infinite alternate;
}

@keyframes cosmicPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes starMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes overlayShift {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-10%) translateY(-5%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Bangers', cursive;
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 
        4px 4px 0px #000,
        6px 6px 0px rgba(0, 0, 0, 0.3),
        8px 8px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: comicTitleBounce 0.6s ease-out;
}

.hero-content h1 span {
    display: inline-block;
    color: #ffe66d;
    transform: rotate(-2deg);
    text-shadow: 
        4px 4px 0px #000,
        6px 6px 0px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-family: 'Comic Neue', cursive;
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-stats .stat-item {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #1a1a1a;
    border-radius: 0;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-align: center;
}

.hero-stats .stat-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
}

.hero-stats .stat-item h3 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #ff4757;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
}

.hero-stats .stat-item p {
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0;
}

@keyframes comicTitleBounce {
    0% { transform: translateY(-50px); opacity: 0; }
    60% { transform: translateY(10px); }
    80% { transform: translateY(-5px); }
    100% { transform: translateY(0); opacity: 1; }
}

.hero-image {
    position: relative;
    z-index: 2;
}

.floating-comic-card {
    animation: comicFloat 6s ease-in-out infinite;
    position: relative;
    transform-style: preserve-3d;
}

.floating-comic-card img {
    border: 6px solid #1a1a1a;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px #fff;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.floating-comic-card:hover img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

@keyframes comicFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* Hero Section 2 */
.hero-section-2 {
    position: relative;
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-xl);
}

.search-box i {
    color: var(--text-muted);
    margin-right: 1rem;
}

.search-box input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
}

.search-box button {
    border-radius: 50px;
    padding: 0.5rem 2rem;
}

/* Page Header - Comic Style */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 0 4rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
    border-bottom: 6px solid #1a1a1a;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="comic-dots-header" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23comic-dots-header)"/></svg>');
    opacity: 0.6;
}

.page-header h1 {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 
        4px 4px 0px #000,
        6px 6px 0px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

.page-header .breadcrumb {
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    display: inline-block;
}

.page-header .breadcrumb-item a {
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: #ffe66d;
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
}

/* Comic Cards - Comic Book Cover Style */
.comic-card {
    background: #fff;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 4px solid #1a1a1a;
    position: relative;
    transform-style: preserve-3d;
}

.comic-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #ffe66d, #ff6b6b);
    background-size: 400% 400%;
    animation: comicBorderGlow 3s ease infinite;
    z-index: -1;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comic-card:hover::before {
    opacity: 1;
}

.comic-card:hover {
    transform: translateY(-20px) rotateY(5deg) rotateX(5deg) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 4px #fff,
        0 0 0 8px #1a1a1a,
        0 0 30px rgba(255, 107, 107, 0.5);
    z-index: 10;
}

@keyframes comicBorderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.comic-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #000;
    border-bottom: 3px solid #1a1a1a;
}

.comic-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.comic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: contrast(1.1) saturate(1.2);
    display: block;
}

.comic-card:hover .comic-image img {
    transform: scale(1.08);
    filter: contrast(1.2) saturate(1.3) brightness(1.05);
}

.comic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

.comic-overlay .btn {
    background: #ff4757;
    border: 3px solid #fff;
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: all 0.2s ease;
}

.comic-overlay .btn:hover {
    transform: rotate(2deg) scale(1.1);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.4);
    background: #ff3838;
}

.comic-info {
    padding: 1.25rem;
    position: relative;
    z-index: 1;
    background: #fff;
    border-top: 2px solid #e0e0e0;
}

.comic-info h5 {
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.comic-info .text-muted {
    font-family: 'Comic Neue', cursive;
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
}

.comic-info .badge {
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    border: 2px solid #1a1a1a;
    background: #ffe66d;
    color: #1a1a1a;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Trending Comic Card */
.trending-comic-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

.trending-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2;
}

.trending-image {
    aspect-ratio: 2/3;
    overflow: hidden;
}

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

.trending-content {
    padding: 1.5rem;
}

/* Genre Cards */
.genre-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.genre-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-cosmic);
    color: white;
    border-color: rgba(99, 102, 241, 0.5);
}

.genre-card:hover::before {
    opacity: 1;
}

.genre-card .genre-icon,
.genre-card h5,
.genre-card p,
.genre-card button {
    position: relative;
    z-index: 2;
}

.genre-card:hover .genre-icon,
.genre-card:hover h5,
.genre-card:hover p,
.genre-card:hover button {
    position: relative;
    z-index: 2;
}

.genre-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    filter: drop-shadow(0 5px 15px rgba(99, 102, 241, 0.3));
}

.genre-card:hover .genre-icon {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.5));
}

.genre-card button {
    pointer-events: none;
    border: none;
}

.genre-action .genre-icon { color: var(--danger-color); }
.genre-fantasy .genre-icon { color: var(--secondary-color); }
.genre-romance .genre-icon { color: var(--accent-color); }
.genre-scifi .genre-icon { color: var(--primary-color); }
.genre-thriller .genre-icon { color: var(--dark-color); }
.genre-comedy .genre-icon { color: var(--warning-color); }
.genre-horror .genre-icon { color: #6b21a8; }
.genre-drama .genre-icon { color: #0891b2; }
.genre-sports .genre-icon { color: var(--success-color); }

/* Feature Cards - Comic Style */
.feature-card {
    padding: 2rem;
    background: #fff;
    border: 4px solid #1a1a1a;
    border-radius: 0;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: #ff4757;
    border: 4px solid #1a1a1a;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-5deg);
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.feature-card h4 {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.feature-card p {
    font-family: 'Comic Neue', cursive;
    color: #666;
    font-weight: 600;
}

/* Mission Cards */
.mission-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.mission-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto;
}

/* Team Cards */
.team-card {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.team-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 5px solid var(--primary-color);
    border-radius: 50%;
    overflow: hidden;
}

/* Pricing Cards - Comic Style */
.pricing-card {
    background: #fff;
    border: 4px solid #1a1a1a;
    border-radius: 0;
    padding: 2.5rem;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border: 4px solid #ff4757;
    transform: scale(1.02);
    box-shadow: 8px 8px 0px rgba(255, 71, 87, 0.3);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(255, 71, 87, 0.4);
}

.popular-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4757;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    border: 3px solid #1a1a1a;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #1a1a1a;
}

.pricing-price {
    margin: 1rem 0;
}

.price-amount {
    font-family: 'Bangers', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.price-period {
    font-family: 'Comic Neue', cursive;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    flex: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 2px solid #e0e0e0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-form-card,
.contact-info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Auth Cards */
.auth-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 76px;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.divider {
    text-align: center;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
}

/* Author Cards */
.author-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.author-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-cosmic);
    border-color: rgba(99, 102, 241, 0.5);
    color: inherit;
}

.author-card:hover::before {
    opacity: 1;
}

.author-avatar,
.author-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.author-card:hover .author-avatar,
.author-card:hover .author-image {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

/* Filter Bar - Comic Style */
.filter-bar {
    background: #fff;
    border: 4px solid #1a1a1a;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.filter-bar .form-label {
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.filter-bar .form-control,
.filter-bar .form-select {
    border: 3px solid #1a1a1a;
    border-radius: 0;
    padding: 0.75rem;
    font-family: 'Comic Neue', cursive;
    font-weight: 600;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: #ff4757;
    box-shadow: 4px 4px 0px rgba(255, 71, 87, 0.3);
}

/* Ensure filter is visible on desktop */
@media (min-width: 768px) {
    #filterCollapse {
        display: block !important;
    }
}

/* Chapter List */
.chapters-list {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.chapter-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.chapter-item:hover {
    background: #f8fafc;
}

.chapter-item:last-child {
    border-bottom: none;
}

/* Update Cards */
.update-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.update-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

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

.update-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.update-info {
    padding: 1.5rem;
}

/* Error & Coming Soon */
.error-section,
.coming-soon-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.error-content,
.coming-soon-content {
    position: relative;
    z-index: 2;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a,
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.social-links a:hover,
.social-icon-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Footer Social Links - Dark Background */
footer .social-links {
    justify-content: flex-start;
}

footer .social-icon-link {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

footer .social-icon-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #ff4757;
    border: 4px solid #fff;
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.4);
    background: #ff3838;
    color: #fff;
}

.btn-outline-light {
    border: 4px solid #fff;
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.4);
    background: #fff;
    color: #667eea;
    border-color: #fff;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-outline-primary {
    border: 4px solid #1a1a1a;
    color: #1a1a1a;
    background: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Step Numbers */
.step-number {
    position: relative;
    display: inline-block;
}

.step-number .badge {
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    background: var(--gradient-primary) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-number:hover .badge {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section,
    .hero-section-2 {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 1rem;
    }
    
    .search-box input {
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Footer Social Icons Mobile */
    footer .social-links {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    footer .social-icon-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}



