/* --- 🌟 MEGA FOOTER STİLLERİ --- */

/* 1. Bülten (Newsletter) Alanı */
.newsletter-section {
    background-color: var(--f-bulten-bg, #1e3a8a);
    color: var(--f-bulten-yazi, #ffffff);
    padding: 40px 0;
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.newsletter-text i {
    font-size: 2.5rem;
}

.newsletter-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.newsletter-text p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.newsletter-form {
    flex: 1;
    max-width: 600px;
    display: flex;
    height: 48px;
}

.newsletter-form input {
    flex: 1;
    padding: 0 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.newsletter-form button {
    background-color: #374151;
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background-color: #111827;
}

/* 2. Ana Footer Alanı */
.mega-footer {
    background-color: var(--f-bg, #f8fafc);
    color: var(--f-yazi, #4b5563);
    padding: 60px 0 20px 0;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* Arka Plan Katman Stili */
.footer-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.70; 
    z-index: 0;   
    pointer-events: none; 
}

/* 🎯 YENİ: Masaüstü ve Mobil Görsellerin Yönetimi */
.desktop-bg { display: block; }
.mobile-bg { display: none; }

.mega-footer .container {
    position: relative;
    z-index: 1; 
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Sol Sütun (Logo & İletişim) */
.footer-left .footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-left .footer-logo img {
    max-width: 180px;
    height: auto;
}

.footer-left .footer-contact-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #fff;
    color: var(--f-ikon, #f97316);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--f-ikon, #f97316);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Sağ Sütunlar (Menüler) */
.footer-menus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-menu-col h4 {
    color: var(--f-baslik, #111827);
    font-size: 1rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-col ul li {
    margin-bottom: 12px;
}

.footer-menu-col ul li a {
    color: var(--f-yazi, #4b5563);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-menu-col ul li a:hover {
    color: var(--f-ikon, #f97316);
}

/* 3. Footer Alt (Copyright, Ödeme ve Premium Design By) */
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
    font-size: 0.85rem;
}

.footer-payment-img {
    max-height: 30px;
}

.premium-design-by {
    display: flex;
    align-items: center;
    gap: 8px;
}

.design-text {
    font-size: 0.78rem;
    color: var(--f-yazi);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.design-logo {
    height: 18px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.premium-design-by:hover .design-logo {
    transform: scale(1.05);
}

/* 📱 MOBİL UYUMLULUK (Harika Ortalama ve Boşluklar Eklendi) */
@media (max-width: 1024px) {
    .footer-top-grid { grid-template-columns: 1fr; gap: 30px; }
    .newsletter-container { flex-direction: column; text-align: center; gap: 20px; }
    .newsletter-form { width: 100%; }
}

@media (max-width: 768px) {
    /* 🎯 YENİ: Arka planı mobilde devreye alıyoruz */
    .desktop-bg { display: none !important; }
    .mobile-bg { display: block !important; }

    /* Footerin kenarlara yapışmasını engelleyen harika padding */
    .mega-footer {
        padding: 50px 20px 30px 20px;
    }

    /* Sol Tarafı Kusursuz Ortalıyoruz */
    .footer-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-left .footer-contact-text {
        text-align: center;
        max-width: 90%; /* Mobilde yazı çok uzunsa göze güzel gelmesi için */
    }

    .social-icons {
        justify-content: center;
        margin-top: 10px;
    }

    /* Menülerin kenarlara çarpmasını engelliyoruz */
    .footer-menus-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 15px; 
        padding: 0 10px; 
    }

    .footer-menu-col h4 {
        text-align: center; /* Menü başlıklarını ortala */
    }

    .footer-menu-col ul li {
        text-align: center; /* Linkleri ortala */
    }

    /* Alt Bar Ortalama */
    .footer-bottom { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
        justify-content: center;
        padding-top: 25px;
        margin-top: 20px;
    }
    
    .premium-design-by {
        justify-content: center;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .footer-menus-grid { 
        grid-template-columns: 1fr; /* Çok dar ekranda linkler alt alta çok daha premium durur */
        gap: 25px;
    }
    .newsletter-text { flex-direction: column; gap: 10px; }
}

/* --- 🎯 WHATSAPP FLOATING BUTON STİLLERİ --- */
.whatsapp-floating-wrapper {
    position: fixed;
    z-index: 999999; 
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-tooltip {
    background: #fff;
    color: #334155;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; 
}

.whatsapp-floating-wrapper:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wa-pulse 2s infinite; 
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1);
    animation: none; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.15); }
    70% { box-shadow: 0 0 0 15px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}