/* ========================================= */
/* STICKY CATEGORY MENU BAR - THIN VERSION */
/* ========================================= */

.category-menu-bar {
    position: sticky;
    top: 80px;
    /* Matches --header-height */
    z-index: 99;
    /* Below navbar (z-index 100) */
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    /* Theme match */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* No gap - menu touches header */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-menu-bar::-webkit-scrollbar {
    display: none;
}

[data-theme="dark"] .category-menu-bar {
    background: linear-gradient(135deg, #4338ca 0%, #7e22ce 100%);
}

.category-menu-container {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    min-width: max-content;
}

.category-menu-item {
    flex-shrink: 0;
    padding: 0.4rem 0.8rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: white;
}

.category-menu-item:active {
    background: rgba(255, 255, 255, 0.25);
}

/* Scroll indicator */
.category-menu-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(147, 51, 234, 0.9), transparent);
    pointer-events: none;
}

[data-theme="dark"] .category-menu-bar::after {
    background: linear-gradient(to left, rgba(126, 34, 206, 0.9), transparent);
}

/* ========================================= */
/* MODERN HERO SECTION */
/* ========================================= */

.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg,
            rgba(79, 70, 229, 0.03) 0%,
            rgba(147, 51, 234, 0.02) 50%,
            transparent 100%);
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s;
}

.search-container:hover {
    transform: scale(1.02);
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-left: 3.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: var(--text);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .search-input {
        padding: 1rem 1.2rem;
        padding-left: 3rem;
        font-size: 1rem;
    }

    .search-icon {
        left: 1.2rem;
        font-size: 1.1rem;
    }
}