/* ==========================================================================
   Hero — gradient hero card with search bar and trending panel.
   ========================================================================== */

.hero {
    padding: 44px 0 28px;
}

.hero-card {
    background: linear-gradient(135deg, rgba(109, 124, 255, 0.98), rgba(138, 75, 214, 0.95));
    color: var(--white);
    border-radius: 36px;
    padding: 64px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hero-card::before {
    width: 240px;
    height: 240px;
    right: -60px;
    top: -80px;
}

.hero-card::after {
    width: 180px;
    height: 180px;
    left: -40px;
    bottom: -60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
}

.hero-card h1,
.hero-card h2,
.hero-card h3,
.hero-card h4,
.hero-card p {
    color: var(--white);
}

.hero-copy h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    margin-bottom: 18px;
    max-width: 11ch;
    color: var(--white);
}

.hero-copy p {
    font-size: 18px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

/* Hero-specific button overrides */
.hero-card .btn-primary {
    background: var(--white);
    color: var(--secondary);
}

.hero-card .btn-primary:hover {
    opacity: 0.9;
}

/* --- Search bar --- */

.search-bar {
    background: var(--white);
    border-radius: 999px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 700px;
    box-shadow: 0 18px 38px rgba(28, 36, 66, 0.2);
}

.search-bar input,
.search-bar select {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    min-height: 44px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
}

.search-bar input {
    flex: 1;
    min-width: 180px;
    padding: 0 8px;
}

.search-bar select {
    border-left: 1px solid var(--border);
    padding-left: 16px;
    min-width: 150px;
}

/* --- Trending panel --- */

.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 24px;
    backdrop-filter: blur(8px);
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 14px;
}

.mini-thumb {
    aspect-ratio: 1.25 / 1;
    border-radius: 18px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.12));
    overflow: hidden;
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.mini-card span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.84);
}

/* --- Responsive --- */

@media (max-width: 991px) {
    .hero-card {
        padding: 40px 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-wrap: wrap;
        border-radius: 28px;
    }

    .search-bar select,
    .search-bar .search-submit {
        width: 100%;
        min-width: 100%;
    }

    .search-bar select {
        border-left: 0;
        border-top: 1px solid var(--border);
        padding-left: 8px;
        padding-top: 10px;
    }
}

@media (max-width: 640px) {
    .hero-copy h1 {
        max-width: 100%;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }
}
