/**
 * Modern Hero Section
 * For Mega/Kaiali sites - welcoming hero banner with integrated search
 */

.hero-modern {
    position: relative;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--color-primary-600) 0%,
        var(--color-primary-800) 100%
    );
    box-shadow: 0 8px 30px rgba(var(--color-primary-700-rgb), 0.3);
    text-align: center;
    overflow: hidden;
}

/* Decorative background elements */
.hero-modern::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-modern::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero-modern__content {
    position: relative;
    z-index: 1;
}

.hero-modern__title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-modern__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Search inside hero */
.hero-modern__search {
    max-width: 500px;
    margin: 0 auto;
}

.hero-modern__search .input-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.25rem;
}

.hero-modern__search .input-wrapper:focus-within {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-modern__search .input-prefix {
    background: transparent;
    color: var(--color-primary-600);
    padding: 0.75rem 1rem;
    border-radius: 50px 0 0 50px;
}

.hero-modern__search input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--color-gray-800);
    border-radius: 0 50px 50px 0;
}

.hero-modern__search input::placeholder {
    color: var(--color-gray-400);
}

/* Dark mode */
html.dark .hero-modern {
    background: linear-gradient(
        135deg,
        var(--color-primary-700) 0%,
        var(--color-primary-900) 100%
    );
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

html.dark .hero-modern__search .input-wrapper {
    background: rgba(var(--color-gray-900-rgb), 0.95);
}

html.dark .hero-modern__search .input-prefix {
    color: var(--color-primary-400);
}

html.dark .hero-modern__search input {
    color: var(--color-gray-100);
}

html.dark .hero-modern__search input::placeholder {
    color: var(--color-gray-500);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-modern {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .hero-modern__title {
        font-size: 1.4rem;
    }

    .hero-modern__subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .hero-modern__search .input-prefix {
        padding: 0.6rem 0.8rem;
    }

    .hero-modern__search input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-modern {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }

    .hero-modern__title {
        font-size: 1.25rem;
    }

    .hero-modern__subtitle {
        font-size: 0.85rem;
    }
}
