/**
 * Hero Section Styles
 * Modern hero with smart search and slider
 * Created: December 2024
 */

/* ============================================
   Hero Section Base
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(247, 113, 18, 0.85) 0%,
        rgba(7, 41, 77, 0.85) 100%
    );
}

/* Hero Content */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 100px 0 80px;
}

.hero-content {
    text-align: center;
    color: #ffffff;
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Smart Search Bar
   ============================================ */
.hero-search-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.search-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 0 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    color: #f77112;
    font-size: 1.25rem;
    margin-right: 15px;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 20px 0;
    font-size: 1.1rem;
    color: #2d3748;
    background: transparent;
}

.hero-search-input::placeholder {
    color: #a0aec0;
}

.search-clear-btn {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.search-clear-btn:hover {
    color: #f77112;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestions-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.suggestions-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestions-list {
    padding: 10px 0;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    color: #2d3748;
}

.suggestion-item:hover {
    background: #f7fafc;
}

.suggestion-item i {
    margin-right: 12px;
    color: #f77112;
    width: 20px;
}

.suggestion-text {
    flex: 1;
}

.suggestion-category {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-left: 10px;
}

.suggestions-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
    border-radius: 0 0 15px 15px;
}

.suggestions-hint {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    align-items: center;
}

.suggestions-hint i {
    margin-right: 8px;
    color: #f77112;
}

/* Category Filters */
.search-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.category-btn.active {
    background: #ffffff;
    color: #f77112;
    border-color: #ffffff;
}

.category-btn i {
    margin-right: 5px;
}

/* ============================================
   Quick Stats
   ============================================ */
.hero-quick-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    font-size: 2rem;
    color: #ffffff;
    opacity: 0.9;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   CTA Buttons
   ============================================ */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn-primary {
    background: #ffffff;
    color: #f77112;
}

.hero-btn-primary:hover {
    background: #f77112;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 113, 18, 0.3);
}

.hero-btn-secondary {
    background: #0c8b51;
    color: #ffffff;
}

.hero-btn-secondary:hover {
    background: #0a7043;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(12, 139, 81, 0.3);
}

.hero-btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* ============================================
   Slider Controls
   ============================================ */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
    pointer-events: none;
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #ffffff;
    width: 30px;
    border-radius: 6px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 1.5rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.animate-fade-in-delay-4 {
    animation: fadeIn 0.8s ease-out 0.8s both;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-quick-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content-wrapper {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-search-container {
        margin-bottom: 2rem;
    }
    
    .search-input-group {
        padding: 0 20px;
    }
    
    .hero-search-input {
        padding: 15px 0;
        font-size: 1rem;
    }
    
    .search-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .hero-quick-stats {
        gap: 20px;
    }
    
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    
    .hero-btn {
        justify-content: center;
        padding: 12px 25px;
    }
    
    .hero-slider-nav {
        padding: 0 15px;
    }
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-search-input {
        font-size: 0.95rem;
    }
    
    .hero-quick-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
}
