/* ========================================= */
/* RENK VE GENEL AYARLAR */
/* ========================================= */
:root {
    /* Camgöbeği (Turkuaz) Teması */
    --primary-color: #00BCD4;     /* Canlı Camgöbeği / Turkuaz */
    --secondary-color: #00838F;  /* Koyu Camgöbeği (Vurgu) */
    --text-dark: #333;
    --text-light: #fff;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f8f8;
    color: var(--text-dark);
}

/* YILDIRIMBEY Logo Stili */
.logo-container { text-align: center; line-height: 1; }
.logo-container h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em; 
    color: var(--secondary-color);
    margin-bottom: 0;
}
.logo-container h2 {
    font-family: 'Roboto', sans-serif;
    font-style: italic; 
    font-weight: 400;
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-top: 0;
}

/* Üst Navigasyon ve Header Ayarları */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: var(--text-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 15px;
    transition: color 0.3s;
    font-weight: 500;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

/* ========================================= */
/* GEÇİŞ BUTONU STİLİ (BÜYÜK EKRAN) */
/* ========================================= */
.switch-site-btn {
    text-decoration: none;
    padding: 8px 15px;
    background-color: #00BCD4; 
    color: white;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 20px; 
    transition: background-color 0.3s, transform 0.3s;
    font-size: 0.95em;
    white-space: nowrap;
    display: flex; 
    align-items: center;
    display: flex; /* Butonun büyük ekranda görünmesini sağlar */
}

.switch-site-btn:hover {
    background-color: #00838F;
    transform: scale(1.05);
}

/* ========================================= */
/* SLIDER, DETAYLAR, HİKAYEMİZ ve İLETİŞİM */
/* ========================================= */

/* SLIDER */
.slider-container { height: 60vh; position: relative; overflow: hidden; margin-bottom: 30px; }
.slider-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; justify-content: center; align-items: center; }
.slider-item.active { opacity: 1; }
.slider-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; }
.slider-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.45); z-index: 2; }
.slider-content { position: relative; z-index: 3; text-align: center; color: var(--text-light); text-shadow: 2px 2px 4px rgba(0,0,0,0.7); padding: 20px; }
.slider-content h3 { font-size: 3em; margin-bottom: 10px; font-family: 'Oswald', sans-serif; }
.slider-content p { font-size: 1.5em; }
.slider-controls button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); color: white; border: none; padding: 10px; cursor: pointer; z-index: 10; }
#prev-btn { left: 10px; }
#next-btn { right: 10px; }

/* DETAYLAR */
.details-section { padding: 80px 50px; text-align: center; }
.section-title { font-size: 2.5em; color: var(--secondary-color); margin-bottom: 60px; font-family: 'Oswald', sans-serif; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.detail-card { background-color: var(--text-light); padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); transition: transform 0.3s, box-shadow 0.3s; }
.detail-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); }
.detail-card .icon { font-size: 3em; display: block; margin-bottom: 15px; color: #8B0000; /* İkon rengi (Kırmızı/Bordo bırakıldı, isterseniz camgöbeği yapabilirsiniz) */ }
.detail-card h3 { color: var(--text-dark); }

/* HİKAYEMİZ (PARALLAX) */
.story-section {
    background-image: url('placeholder-hayvan-koy.jpg'); 
    min-height: 500px; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 50px;
}
.story-content { background-color: rgba(0, 0, 0, 0.75); padding: 50px; border-radius: 10px; color: var(--text-light); max-width: 700px; }
.story-content h2 { font-size: 3em; color: var(--text-light); margin-top: 0; }

/* İLETİŞİM */
.contact-section { padding: 80px 50px; background-color: var(--text-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: flex-start; }
.contact-info-container { padding: 20px; background-color: #f8f8f8; border-radius: 8px; height: 100%; }
.contact-info-container h3 { font-size: 2em; color: var(--secondary-color); margin-top: 0; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; }
.info-item { margin-bottom: 30px; display: flex; align-items: flex-start; }
.info-item i { font-size: 1.5em; color: var(--secondary-color); margin-right: 15px; padding-top: 5px; }
.info-item h4 { margin: 0; font-size: 1.2em; color: var(--text-dark); }
.info-item p { margin: 5px 0 0 0; color: #555; }
.social-links { display: flex; align-items: center; }
.social-links h4 { margin-right: 20px; }
.social-links a { font-size: 1.5em; color: var(--secondary-color); margin-right: 15px; transition: color 0.3s; }
.social-links a:hover { color: var(--primary-color); }
.contact-map-container { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); border-radius: 8px; overflow: hidden; }
.contact-map-container iframe { width: 100%; display: block; }

/* Footer */
footer { text-align: center; padding: 20px; background-color: var(--secondary-color); color: var(--text-light); margin-top: 0; }

/* ========================================= */
/* MEDİA QUERIES (RESPONSIVE TASARIM) - DÜZELTİLMİŞ BLOK */
/* ========================================= */

/* Hamburger Butonunun Varsayılan Olarak Gizlenmesi (Büyük Ekran) */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--secondary-color);
}

/* BÜYÜK EKRAN AYARLARI (769px ve üzeri) */
@media (min-width: 769px) {
    .switch-site-btn {
        display: flex; /* Nav'ın yanındaki buton büyük ekranda görünür */
    }
    .switch-site-btn.mobile-block-btn {
        display: none; /* Bu sınıfı büyük ekranda gizle */
    }
    .main-nav {
        margin-right: auto; /* Nav menüsünün sol tarafa doğru kaymasını sağlar */
    }
}

/* MOBİL AYARLARI (768px ve altı) */
@media (max-width: 768px) {
    
    /* 1. HEADER ve NAVİGASYON AYARLARI */
    .main-header {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        padding: 15px 20px;
    }
    .menu-toggle {
        display: block; /* Hamburger İkonu görünür */
    }

    .main-nav {
        position: absolute;
        top: 60px; /* Header yüksekliğine göre ayarlanmalı */
        left: 0;
        width: 100%;
        background-color: var(--text-light);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none; /* KRİTİK: Varsayılan olarak menü gizli */
        z-index: 999;
        overflow: hidden;
    }
    .main-nav.active {
        display: block;
        height: auto;
    }
    .main-nav ul {
        flex-direction: column; 
        gap: 0;
        padding: 0;
    }
    .main-nav ul li a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* 2. GEÇİŞ BUTONU AYARLARI (HAMBURGER MENÜ İÇİNDE GÖRÜNÜR) */
    
    /* Büyük ekrandan kalan ve nav dışında olması gereken butonu gizle */
    .switch-site-btn {
        display: none; 
    }
    
    /* Mobil menü içine taşıdığımız butonu aktif et */
    .switch-site-btn.mobile-block-btn {
        display: block; /* BUTONU GÖRÜNÜR YAP */
        text-align: center;
        width: auto; 
        padding: 15px 20px;
        /* Menü listesinin altına uygun marjinler */
        margin: 10px 20px 20px 20px; 
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* 3. İÇERİK ALANLARI KÜÇÜLTME */
    .details-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .story-section {
        background-attachment: scroll;
        min-height: 400px;
    }
    .slider-container {
        height: 45vh; 
    }
    .contact-map-container iframe {
        height: 300px; 
    }
    .details-section, .contact-section {
        padding: 30px 20px;
    }
}

/* BÜYÜK EKRAN AYARLARI (769px ve üzeri) */
@media (min-width: 769px) {
    /* Mobil menü içindeki butonu gizle (sadece mobil için gerekliydi) */
    .switch-site-btn.mobile-block-btn {
        display: none; 
    }
}

/* MOBİL AYARLARI (768px ve altı) */
@media (max-width: 768px) {
    /* Büyük ekrandaki butonu gizle (yer kaplamamalı) */
    .switch-site-btn {
        display: none; 
    }
    
    /* Mobil menü içindeki butonu göster (hamburger açılınca) */
    .switch-site-btn.mobile-block-btn {
        display: block; 
        /* ... diğer mobil stiller ... */
    }
}


/* Geçiş Animasyonu İçin Güncellenmiş Stiller */

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff; /* Beyaz ekran geçişi */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    /* transition: opacity 0.5s ease-out, visibility 0.5s ease-out; -- Bunu kaldırıyoruz, keyframe kullanacağız */
}

/* Overlay'in kendisi sadece görünür/gizli olacak, animasyon logoda */
.transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

.animated-logo {
    width: 0;
    height: 0;
    opacity: 0;
    object-fit: contain;
}

/* Animasyonu tetikleyen anahtar kareler */
@keyframes logoTransition {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    30% { /* Logo hızlıca büyümeye başlar */
        width: 50vw;
        height: 50vh;
        opacity: 1;
    }
    60% { /* Logo zirveye ulaşır ve biraz duraklar */
        width: 80vw;
        height: 80vh;
        opacity: 1;
    }
    80% { /* Logo küçülmeye ve kaybolmaya başlar */
        width: 30vw;
        height: 30vh;
        opacity: 0.5;
    }
    100% { /* Logo tamamen küçülür ve kaybolur */
        width: 0;
        height: 0;
        opacity: 0;
    }
}

/* Overlay aktif olduğunda logo animasyonunu uygula */
.transition-overlay.active .animated-logo {
    animation: logoTransition 2s ease-in-out forwards; /* 2 saniyelik animasyon */
}


/* Geçiş Animasyonu İçin Yeni Stiller */

.transition-overlay {
    position: fixed; /* Ekranı tam kaplaması için */
    top: 0;
    left: 0;
    width: 100vw; /* Görünür genişlik */
    height: 100vh; /* Görünür yükseklik */
    background-color: #fff; /* Beyaz ekran geçişi */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* En üstte görünmesini sağlar */
    opacity: 0; /* Başlangıçta gizli */
    visibility: hidden; /* Etkileşimi engeller */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* Görünürlük geçişi */
}

.transition-overlay.active {
    opacity: 1; /* Aktif olduğunda görünür */
    visibility: visible;
}

.animated-logo {
    width: 0; /* Başlangıçta çok küçük */
    height: 0; /* Başlangıçta çok küçük */
    opacity: 0; /* Başlangıçta görünmez */
    transition: width 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55), /* Yaylı bir animasyon efekti */
                height 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                opacity 0.5s ease-in-out;
    object-fit: contain; /* Oranı korur */
}

.transition-overlay.active .animated-logo {
    width: 90vw; /* Ekranın %90'ını kaplayacak şekilde büyür */
    height: 90vh; /* Ekranın %90'ını kaplayacak şekilde büyür */
    opacity: 1; /* Tamamen görünür */
}

/* BUTONLARIN RENGİ: Bu geçiş anında logo beyaz zeminde kaybolmaması için logoya uygun bir renk kullanmak iyi olur. */
/* LOGO RENGİNİZE GÖRE DÜZENLEYİN: */
/* Örneğin, logonuzda mavi tonları varsa geçiş butonunu farklı yapabilirsiniz. */
.switch-site-btn.mobile-block-btn,
.switch-site-btn {
    /* ... Mevcut stiller ... */
    /* Geçiş butonlarının rengini animasyon zeminine uygun yapın */
    background-color: var(--secondary-color); /* Mevcut ana renginiz */
    color: white; /* Yazı rengi */
}

