/* Niche Finder Section */
.niche-finder {
    padding: 6rem 0;
    background: #000;
    text-align: center;
}

.niche-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.niche-finder h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 400; /* More elegant/serif look if possible, but using Montserrat for now */
    font-family: serif; /* Trying to match the serif font in screenshot */
}

.niche-finder h2 .highlight {
    color: var(--accent-color);
    font-style: italic;
    font-family: serif;
}

.niche-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #444;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag.active {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.filter-tag.gray {
    background: #333;
    color: #aaa;
    border-color: #333;
}

.filter-tag:hover {
    border-color: #fff;
    color: #fff;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.cat-btn {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.cat-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.cat-btn.active {
    border-color: var(--accent-color);
    background: rgba(255, 69, 0, 0.15);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.cat-btn .icon {
    font-size: 1.2rem;
}

/* Specific carousel overrides if needed */
.niche-carousel {
    margin-top: 2rem;
    /* Reuse the mask from the main carousel */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: auto;
    overflow: hidden;
}

/* Small Cards Styling */
.video-card.small-card {
    width: 150px; /* 50% of 300px */
    height: 265px; /* 50% of 530px */
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.video-card.small-card:hover {
    transform: scale(1.05);
}

/* Scrolling Directions */
.video-track.scroll-left {
    animation: scroll 40s linear infinite;
}

.video-track.scroll-right {
    animation: scroll-reverse 40s linear infinite;
}

/* Need to define scroll-reverse here as it might not be in style.css */
@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive - Niche Section */
@media (max-width: 768px) {
    .niche-finder {
        padding: 4rem 0;
    }

    .niche-content {
        padding: 0 1rem;
    }

    .niche-finder h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .niche-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-tag {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .category-grid {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .cat-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .cat-btn .icon {
        font-size: 1rem;
    }

    .niche-carousel {
        margin-top: 1.5rem;
        gap: 0.3rem;
    }

    .video-card.small-card {
        width: 100px;
        height: 177px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .niche-finder h2 {
        font-size: 1.6rem;
    }

    .filter-tag {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }

    .cat-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .video-card.small-card {
        width: 80px;
        height: 142px;
        border-radius: 8px;
    }
}
