/*
 * Rizi — Home Page Specific Styles
 */

/* ═══════════════════ HERO ═══════════════════ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animated gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: floatOrb 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: floatOrb 10s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

@keyframes floatOrb {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, -40px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 60px 20px;
    width: 100%;
}

.hero-title {
    color: white;
    margin-bottom: 40px;
}

.hero-title-ar {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle-ar {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .search-box {
    background: rgba(30, 41, 59, 0.95);
}

.search-field {
    flex: 1;
    padding: 8px 16px;
    text-align: right;
}

[dir="ltr"] .search-field {
    text-align: left;
}

.search-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.search-input, .search-select {
    width: 100%;
    border: none;
    background: none;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
}

.search-input:focus, .search-select:focus {
    outline: none;
}

/* City Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 4px;
}

.autocomplete-dropdown .ac-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}

.autocomplete-dropdown .ac-item:hover,
.autocomplete-dropdown .ac-item.active {
    background: var(--bg-secondary);
}

.autocomplete-dropdown .ac-item i {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.autocomplete-dropdown .ac-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.search-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

.search-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-spring);
    position: relative;
}

.search-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.1);
}

.search-btn:hover::after {
    opacity: 0.3;
    inset: -6px;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.filter-chip {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-spring);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.filter-chip:hover, .filter-chip.active {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-title-ar {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius-xl);
        padding: 16px;
        gap: 8px;
    }

    .search-divider {
        width: 100%;
        height: 1px;
    }

    .search-field {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        height: 48px;
        border-radius: var(--radius-md);
    }
}
