/**
 * HERO BÖLÜMÜ STİLLERİ
 * Başlık ve tanıtım alanı
 */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px var(--space-md);
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-size: 100% 100%; /* Resmi hero alanına tam oturt */
    background-position: center center;
    background-repeat: no-repeat;
}

/* Admin tarafından yüklenen arka plan resmi */
.hero[style*="background-image"] {
    background-blend-mode: overlay;
}

:root.dark-mode .hero {
    background: linear-gradient(135deg, #1a3a0a 0%, #2d5016 100%);
    background-size: 100% 100%; /* Dark mode'da da aynı ayar */
}

.hero::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 1200 600"><defs><pattern id="pattern" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><rect fill="rgba(255,255,255,0.03)" width="200" height="200"/><path stroke="rgba(255,255,255,0.05)" d="M0,0 L200,200 M200,0 L0,200"/></pattern></defs><rect width="1200" height="600" fill="url(%23pattern)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 0.8s ease forwards;
}

.hero h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-lg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero {
        padding: 40px var(--space-md);
        min-height: 400px;
        background-attachment: scroll; /* Mobilde fixed yerine scroll kullan */
        background-position: center center; /* Resmi ortala */
        background-size: 100% 100%; /* Resmi tam alanı kaplayacak şekilde esnet */
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px var(--space-md);
        min-height: 350px;
        background-attachment: scroll;
        background-position: center center;
        background-size: 100% 100%;
    }
    
    .hero h1 {
        font-size: 24px;
    }
}
