/**
 * Hero Section - Modern Design
 * סקשן הירו המרכזי של האתר
 */

/* ==========================================
   Hero Container
   ========================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-16) 0;
    background: 
        linear-gradient(135deg, rgba(33, 150, 243, 0.95) 0%, rgba(156, 39, 176, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Animated Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(156, 39, 176, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 10%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    animation: heroBackgroundFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroBackgroundFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Particle Background (optional overlay) */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleFloat 40s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

@keyframes particleFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-50px); }
}

/* ==========================================
   Glassmorphism Search Box
   ========================================== */

.hero-glass-box {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
    animation: glassBoxFloat 6s ease-in-out infinite;
    transition: var(--transition-base);
}

.hero-glass-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 48px 0 rgba(31, 38, 135, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
}

@keyframes glassBoxFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   Hero Title & Text
   ========================================== */

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    color: var(--neutral-0);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 10;
}

.hero-title.gradient-text {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typewriter Effect */
.hero-title .typewriter {
    display: inline-block;
    border-right: 3px solid var(--neutral-0);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-subtitle {
    font-size: var(--text-xl);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 10;
}

/* ==========================================
   Search Form Enhancements
   ========================================== */

.hero-search-form {
    position: relative;
    z-index: 10;
}

.hero-search-input {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    font-size: var(--text-lg);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.hero-search-input:focus {
    background: var(--neutral-0);
    border-color: var(--primary-500);
    box-shadow: 
        var(--shadow-primary),
        0 0 0 4px rgba(33, 150, 243, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.hero-search-button {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-0);
    box-shadow: var(--shadow-primary);
    transition: var(--transition-base);
    cursor: pointer;
}

.hero-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-primary),
        0 0 20px rgba(33, 150, 243, 0.5);
}

.hero-search-button:active {
    transform: translateY(0);
}

/* Advanced Search Toggle */
.hero-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--neutral-0);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-advanced-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   Call-to-Action Buttons
   ========================================== */

.hero-cta-group {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-6);
    position: relative;
    z-index: 10;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-xl);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.hero-cta-primary {
    background: var(--neutral-0);
    color: var(--primary-700);
}

.hero-cta-primary:hover {
    background: var(--neutral-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--neutral-0);
    color: var(--neutral-0);
    backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   Floating Elements
   ========================================== */

.hero-floating-element {
    position: absolute;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.hero-floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-floating-element:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.hero-floating-element:nth-child(3) {
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
}

.hero-floating-element:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

/* Floating Icons/Badges */
.hero-floating-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-3) var(--space-4);
    color: var(--neutral-0);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   Scroll Indicator
   ========================================== */

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-scroll-indicator:hover {
    color: var(--neutral-0);
}

.hero-scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: var(--radius-full);
    position: relative;
}

.hero-scroll-mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: var(--radius-sm);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0;
        top: 20px;
    }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: var(--space-12) 0;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-glass-box {
        padding: var(--space-6);
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-cta-button {
        width: 100%;
    }
    
    .hero-floating-element {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-glass-box {
        padding: var(--space-4);
        border-radius: var(--radius-xl);
    }
}

/* ==========================================
   RTL Support
   ========================================== */

[dir="rtl"] .hero-title .typewriter {
    border-right: none;
    border-left: 3px solid var(--neutral-0);
}

[dir="rtl"] .hero-floating-element:nth-child(1) {
    left: auto;
    right: 10%;
}

[dir="rtl"] .hero-floating-element:nth-child(2) {
    right: auto;
    left: 15%;
}

[dir="rtl"] .hero-floating-element:nth-child(3) {
    left: auto;
    right: 15%;
}

[dir="rtl"] .hero-floating-element:nth-child(4) {
    right: auto;
    left: 10%;
}

