/* ============================================================
   INDEX.CSS — Homepage-Specific Styles
   ============================================================ */

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    position: relative;
    padding: var(--space-20) 0 var(--space-16);
    background: linear-gradient(160deg, #0f0c29 0%, #302b63 45%, #24243e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 30% 40%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 75% 60%, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating orbs */
.hero__orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    animation: orb-drift 8s ease-in-out infinite alternate;
}

.orb--1 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    top: -80px;
    left: -80px;
    animation-delay: 0s;
}

.orb--2 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.orb--3 {
    width: 250px;
    height: 250px;
    background: #ec4899;
    bottom: -40px;
    left: 40%;
    animation-delay: 4s;
}

@keyframes orb-drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20px, -20px) scale(1.05);
    }
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(8px);
}

.hero__eyebrow span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: var(--weight-black);
    color: #fff;
    line-height: 1.1;
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
}

.hero__title .highlight {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

/* Hero Search Bar */
.hero-search {
    max-width: 760px;
    margin: 0 auto var(--space-6);
    position: relative;
}

.hero-search__bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.hero-search__bar:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.25);
}

.hero-search__icon {
    padding: 0 var(--space-5);
    font-size: 20px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.hero-search__input {
    flex: 1;
    padding: var(--space-5) var(--space-3) var(--space-5) 0;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: transparent;
}

.hero-search__input::placeholder {
    color: var(--color-text-muted);
}

.hero-search__divider {
    width: 1px;
    height: 32px;
    background: var(--color-border);
    flex-shrink: 0;
}

.hero-search__select {
    padding: var(--space-4) var(--space-5);
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    background: transparent;
    cursor: pointer;
    min-width: 150px;
    font-weight: var(--weight-medium);
}

.hero-search__btn {
    margin: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.hero-search__btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Verified toggle */
.hero-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.verified-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    user-select: none;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.toggle-track::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform var(--transition-fast);
}

.toggle-switch input:checked+.toggle-track {
    background: var(--color-accent);
}

.toggle-switch input:checked+.toggle-track::after {
    transform: translateX(18px);
}

/* Hero Pricing Filters */
.hero-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.hero-filter {
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    backdrop-filter: blur(4px);
}

.hero-filter:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.hero-filter.active {
    background: #fff;
    border-color: #fff;
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    margin-top: var(--space-10);
    padding-top: var(--space-10);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat__value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-black);
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat__label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ── Homepage Categories Section ─────────────────────── */
.home-categories {
    padding: var(--space-16) 0 var(--space-20);
    background: #f9fafb;
}

.home-categories__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* 4-column grid — matches reference layout exactly */
.home-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* cards are tall enough for 10 rows + header + footer */
.home-cat-card {
    min-height: 520px;
}

/* ── "See Full List" CTA ──────────────────────────────────── */
.home-cta {
    text-align: center;
    padding: var(--space-16) 0;
}

.home-cta__inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.home-cta p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

/* ── Quick Stats Strip ────────────────────────────────────── */
.quick-stats {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-5) 0;
}

.quick-stats__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.qs-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.qs-item strong {
    color: var(--color-text-primary);
    font-weight: var(--weight-bold);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .home-cats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .home-cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .home-cats-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: var(--space-6);
    }

    .hero-search__select,
    .hero-search__divider {
        display: none;
    }
}