/* ===== MODERN HERO SECTION & SEARCH COMPONENT ===== */
/* Color Hunt Palette: #FEF3E2, #FAB12F, #FA812F, #DD0303 */

/* Ana Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FAB12F 0%, #FA812F 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 15px 15px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.hero-section h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
}

/* Arama Konteyneri */
.search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Arama Input Grubu */
.search-input-group {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(250, 129, 47, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(250, 129, 47, 0.2);
}

.search-input-group:focus-within {
    box-shadow: 0 6px 20px rgba(250, 129, 47, 0.25);
    transform: translateY(-2px);
    border-color: #FA812F;
}

/* Arama Input */
.search-input {
    flex: 1;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #FEF3E2;
}

.search-input:focus {
    background: white;
    box-shadow: none;
}

.search-input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Temizleme Butonu */
.clear-search-btn {
    border: none;
    border-left: 1px solid rgba(250, 129, 47, 0.2);
    border-right: 1px solid rgba(250, 129, 47, 0.2);
    background: #FEF3E2;
    color: #6c757d;
    padding: 0 0.75rem;
    display: none;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
}

.clear-search-btn:hover {
    background: #FA812F;
    color: white;
}

.clear-search-btn:focus {
    outline: none;
    background: #FA812F;
    color: white;
}

/* Arama Butonu */
.search-btn {
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    background: #FA812F;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: #DD0303;
    transform: translateY(-1px);
}

.search-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(221, 3, 3, 0.3);
}

.search-btn:active {
    transform: scale(0.98);
}

/* Hata Durumu */
.search-input.is-invalid {
    border: 1px solid #DD0303;
    box-shadow: 0 0 0 0.2rem rgba(221, 3, 3, 0.1);
}

.search-error {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(221, 3, 3, 0.15);
    margin-top: 1rem;
    background: rgba(221, 3, 3, 0.1);
    border-left: 4px solid #DD0303;
}

.search-error .btn-close {
    font-size: 0.7rem;
    padding: 0.5rem;
}

/* Popüler Aramalar */
.popular-searches {
    margin-top: 2rem;
    text-align: center;
}

.popular-searches h6 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    color: white;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.popular-tags .badge {
    padding: 0.4rem 0.7rem;
    font-weight: 400;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-tags .badge:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: white;
}

/* Yardımcı Metin */
.form-text.text-light {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Loading State */
.search-btn.loading {
    position: relative;
    color: transparent;
}

.search-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success State */
.search-input.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.1);
}

/* ===== RESPONSIVE TASARIM ===== */

/* Tablet */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .search-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .search-input {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .popular-tags {
        gap: 0.375rem;
    }
    
    .popular-tags .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 0;
        border-radius: 0 0 10px 10px;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 8px;
        overflow: hidden;
        gap: 0;
    }
    
    .search-input {
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid rgba(250, 129, 47, 0.2);
        padding: 0.85rem 1rem;
    }
    
    .clear-search-btn {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(250, 129, 47, 0.2);
        padding: 0.6rem;
        justify-content: center;
        display: flex;
        order: 2;
    }
    
    .search-btn {
        border-radius: 0 0 8px 8px;
        justify-content: center;
        padding: 0.85rem 1rem;
        order: 3;
    }
    
    .popular-searches h6 {
        font-size: 0.85rem;
    }
    
    .popular-tags .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Küçük Mobil Cihazlar */
@media (max-width: 380px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .search-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .search-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .popular-tags {
        gap: 0.25rem;
    }
    
    .popular-tags .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, #FA812F 0%, #DD0303 100%);
    }
    
    .search-input {
        background: #2d3748;
        color: white;
    }
    
    .search-input::placeholder {
        color: #a0aec0;
    }
    
    .clear-search-btn {
        background: #2d3748;
        color: #a0aec0;
    }
    
    .clear-search-btn:hover {
        background: #FA812F;
        color: white;
    }
}

/* Erişilebilirlik İyileştirmeleri */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .search-input-group,
    .search-input,
    .search-btn,
    .popular-tags .badge {
        transition: none;
    }
    
    .search-btn.loading::after {
        animation: none;
    }
    
    .search-btn:hover {
        transform: none;
    }
    
    .popular-tags .badge:hover {
        transform: none;
    }
}

/* Yüksek Kontrast Modu */
@media (prefers-contrast: high) {
    .hero-section {
        background: #FA812F;
        border: 2px solid white;
    }
    
    .search-input-group {
        box-shadow: 0 0 0 2px #FA812F;
        border: 2px solid #FA812F;
    }
    
    .popular-tags .badge {
        border: 2px solid white;
        background: #FA812F !important;
    }
    
    .search-error {
        border: 2px solid #DD0303;
        background: white;
        color: black;
    }
}

/* Yazdırma Stilleri */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .search-container {
        display: none;
    }
    
    .popular-searches {
        display: none;
    }
}

/* Touch Cihazlar için Optimizasyon */
@media (hover: none) and (pointer: coarse) {
    .search-btn:hover {
        transform: none;
        background: #FA812F;
    }
    
    .popular-tags .badge:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .clear-search-btn:hover {
        background: #FEF3E2;
        color: #6c757d;
    }
}

/* Yatay Mod Mobil Cihazlar */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .search-container {
        margin: 0.5rem auto;
    }
}
