/* ==================== CATEGORY PAGE STYLES ==================== */

/* Compact Hero Section */
.category-page .hero-billboard.category-hero {
    height: 25vh !important;
    min-height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.category-page .hero-content-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 20px !important;
}

.category-page .hero-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.category-page .hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0;
}

/* Genre Filter Buttons Section - REMOVED */

/* Carousel Sections with Genre Names - Match Homepage Spacing */
.category-page .carousel-section {
    padding: 40px 60px;
    margin-bottom: 0;
}

.category-page .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 20px;
}

/* Add to List Button on Content Cards - Content Detail Style */
.category-page .content-card {
    position: relative;
}

.category-page .content-card .add-to-list-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.08);
    border: none;
    color: #f5f5f5;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    z-index: 10;
}

/* SVG Icon inside button */
.category-page .content-card .add-to-list-btn::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.category-page .content-card:hover .add-to-list-btn {
    opacity: 1;
}

.category-page .content-card .add-to-list-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.category-page .content-card .add-to-list-btn.added {
    background-color: rgba(255, 255, 138, 0.15);
}

.category-page .content-card .add-to-list-btn.added::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFFF8A' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* SEO Text Section */
.seo-text-section {
    padding: 40px 60px;
    background-color: #0a0a0a;
    border-top: 1px solid rgba(128, 128, 128, 0.5);
    margin-top: 60px;
    margin-left: 0;
}

.seo-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: #f5f5f5;
    text-align: center;
}

.seo-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: #b3b3b3;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

.seo-content {
    width: 100%;
    margin: 0;
    height: 20vh;
    overflow-y: auto;
    padding-right: 20px;
    line-height: 1.8;
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 300;
    text-align: center;
    position: relative;
}

/* Gradient Overlay - Bottom Only */
.seo-content::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.5) 40%, #0a0a0a 100%);
    pointer-events: none;
    z-index: 1;
    display: block;
    margin-top: -80px;
}

/* Custom Scrollbar for SEO Content - Black */
.seo-content::-webkit-scrollbar {
    width: 10px;
}

.seo-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.seo-content::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Firefox Scrollbar */
.seo-content {
    scrollbar-width: thin;
    scrollbar-color: #000000 rgba(0, 0, 0, 0.3);
}

.seo-content p {
    margin-bottom: 18px;
    font-size: 1rem;
    color: #f5f5f5;
    text-align: center;
}

.seo-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 14px;
    color: #f5f5f5;
    text-align: center;
}

.seo-content p:first-child {
    font-size: 1rem;
}

/* Add to List Feedback Notification */
.add-list-feedback {
    position: fixed;
    top: 100px;
    right: -350px;
    background-color: #FFFF8A;
    color: #0a0a0a;
    padding: 18px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 25px rgba(255, 255, 138, 0.5);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.add-list-feedback.show {
    right: 30px;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 768px) {
    .category-page .hero-billboard.category-hero {
        height: 30vh !important;
        min-height: 240px !important;
    }
    
    .category-page .hero-main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .category-page .hero-subtitle {
        font-size: 0.9rem;
    }

    .category-page .carousel-section {
        padding: 30px 20px;
    }

    .seo-text-section {
        padding: 30px 20px;
        margin-left: 0;
        background-color: #0a0a0a;
        border-top: 1px solid rgba(128, 128, 128, 0.5);
    }

    .seo-title {
        font-size: 1.5rem;
    }
    
    .seo-subtitle {
        font-size: 0.9rem;
    }

    .seo-content {
        height: 20vh;
        padding-right: 10px;
        font-size: 0.8rem;
    }
    
    .seo-content p {
        font-size: 0.8rem;
    }
    
    .seo-content p:first-child {
        font-size: 0.8rem;
    }
    
    .seo-content h3 {
        font-size: 1.2rem;
    }

    .add-list-feedback {
        right: -300px;
        font-size: 0.9rem;
        padding: 14px 22px;
    }

    .add-list-feedback.show {
        right: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .category-page .hero-billboard.category-hero {
        height: 35vh !important;
        min-height: 260px !important;
    }
    
    .category-page .hero-main-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .category-page .hero-subtitle {
        font-size: 0.85rem;
    }

    .category-page .carousel-section {
        padding: 25px 20px;
    }

    .seo-text-section {
        padding: 25px 20px;
        margin-left: 0;
        background-color: #0a0a0a;
        border-top: 1px solid rgba(128, 128, 128, 0.5);
    }

    .seo-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .seo-subtitle {
        font-size: 0.85rem;
    }

    .seo-content {
        height: 20vh;
        font-size: 0.85rem;
    }
    
    .seo-content p {
        font-size: 0.85rem;
    }
    
    .seo-content p:first-child {
        font-size: 0.8rem;
    }

    .seo-content h3 {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .category-page .content-card .add-to-list-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .category-page .content-card .add-to-list-btn::before {
        width: 18px;
        height: 18px;
    }
}
