
/* Genel Sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;    color: #fff;
    overflow-x: hidden;
}

/* === PRELOADER (SİTE YÜKLENİYOR) EKRANI === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0f0f0f; /* Koyu zemin */
    z-index: 9999; /* En üstte duracak */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out; /* Kaybolurken yumuşak geçiş */
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 80%;
    max-width: 400px;
}

.preloader-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(192, 150, 91, 0.5));
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(192, 150, 91, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(192, 150, 91, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(192, 150, 91, 0.4)); }
}

.loading-text {
    font-family: 'Lilita One', 'Arial Black', sans-serif;
    color: #c0965b;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    animation: blinkText 1.5s infinite;
}

@keyframes blinkText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Ateşli / Kırmızı Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #222;
    border-radius: 6px;
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

.progress-bar-fill {
    height: 100%;
    width: 0%; /* JS ile %100'e çıkarılacak */
    background: linear-gradient(90deg, #8b0000, #ff4500, #ff8c00);
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
}

/* Ateş parlaması efekti */
.progress-bar-glow {
    position: absolute;
    top: -50%;
    left: 0;
    width: 0%; /* JS ile doldukça bu da artacak ama ucunda parlama yapacak şekilde */
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    transform: translateX(-50%);
    opacity: 0.8;
}

/* Sabit Arka Plan */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* ARTIK SCROLLBAR İLE UYUMLU */
    height: 100%; /* vh yerine % yapmak da mobildeki kaymaları önler */
    background-image: url('/assets/img/back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* === WEB (MASAÜSTÜ) İÇİN SABİT ELEMENTLER === */

/* Sol Üst Menü */
.top-left-menu {
    position: fixed;
    top: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

/* Buton Tasarımı - Özel CSS */
/* Container - clamp kullanarak ekran boyutuna göre otomatik ölçeklenir */
.custom-nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: clamp(40px, 5vw, 70px);
    width: clamp(160px, 20vw, 260px);
    margin-bottom: clamp(8px, 1.5vh, 15px);
    transition: transform 0.2s ease;
}
.custom-nav-btn:hover {
    transform: scale(1.05); /* simple hover effect */
}

/* Dark brown tab behind */
.custom-nav-btn::before {
    content: '';
    position: absolute;
    top: 5px; /* Offset to the top */
    left: clamp(20px, 3vw, 35px); /* Starts behind the center of the circle */
    width: clamp(100px, 13vw, 170px); /* Fixed width extending right */
    height: clamp(20px, 3vh, 35px); /* Only top half */
    background-color: #7b6245; /* Dark brown */
    border-top-right-radius: clamp(10px, 1.5vw, 17px);
    border-bottom-right-radius: clamp(10px, 1.5vw, 17px);
    z-index: 1;
}

/* The right text container */
.nav-btn-text-wrapper {
    position: absolute;
    left: clamp(25px, 3.5vw, 45px); /* So the circle overlaps it */
    width: clamp(140px, 18vw, 250px); /* Fills the rest of the width */
    height: clamp(45px, 4vh, 46px); /* Text box height */
    top: 50%;
    transform: translateY(-50%);
    background-color: #c0965b; /* Gold */
    border-radius: clamp(15px, 2vw, 23px); /* Full pill shape on the right */
    z-index: 2;
    border: clamp(2px, 0.3vw, 3px) solid #c0965b;
    box-shadow: inset 0 0 0 clamp(1px, 0.2vw, 2px) #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: clamp(15px, 2vw, 25px); /* Space for the circle */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
i.fa-brands.fa-instagram {
    font-size: clamp(16px, 3vw, 47px);
}
.custom-nav-btn:hover .nav-btn-text-wrapper {
    background-color: #b0864b;
    border-color: #b0864b;
}

.nav-btn-text-content {
    color: #fff;
    font-family: fantasy;
    font-size: clamp(12px, 2.5vw, 30px);
    letter-spacing: clamp(0.5px, 0.1vw, 1.5px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* The left circle */
.nav-btn-icon-wrapper {
    position: relative;
    width: clamp(40px, 5vw, 70px);
    height: clamp(40px, 5vw, 70px);
    background-color: #fff;
    border: clamp(2px, 0.4vw, 4px) solid #c0965b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    transition: border-color 0.2s ease;
}

.custom-nav-btn:hover .nav-btn-icon-wrapper {
    border-color: #b0864b;
}

/* Icon */
.nav-btn-icon-wrapper i {
    color: #7b6245;
    font-size: clamp(16px, 2vw, 40px);
}

/* Sağ Üst Logo */
.top-right-logo {
    position: fixed;
    top: clamp(-30px, -2vw, 10px);
    right: clamp(10px, 1.5vw, 30px);
    z-index: 10;
}

.top-right-logo img {
    /* Sol taraftaki butonlar kadar büyük olacak şekilde %25 daha artırıldı */
    max-width: clamp(200px, 25vw, 325px); 
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

/* Sol Alt Discord Butonu */
.discord-btn {
    position: fixed;
    bottom: clamp(20px, 3vw, 40px);
    left: clamp(20px, 3vw, 40px);
    z-index: 10;
    /* Dönüş merkezini netleştirmek için */
    display: inline-flex; 
    justify-content: center;
    align-items: center;
}

.discord-btn img {
    /* İkon duyarlı ve %25 DAHA DÜNYA kadar BÜYÜTÜLDÜ */
    width: clamp(100px, 12.5vw, 162px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    /* Transform origin tam merkez (tekerlek gibi bölgesi) olmalı */
    transform-origin: center center;
    transition: transform 0.3s ease;
}

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

.discord-btn:hover img {
    /* Tekerlek gibi, tam ortasından sürekli ve HIZLI dönüş efekti */
    animation: spinWheelConfigured 1.5s linear infinite;
}

/* Sağ Alt Slider */
.bottom-right-slider {
    position: fixed;
    bottom: clamp(20px, 3vw, 40px);
    right: clamp(20px, 3vw, 40px);
    width: clamp(180px, 20vw, 260px); /* Slider genişliği de duyarlı */
    z-index: 10;
    padding: clamp(8px, 1vw, 12px);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.slider-container {
    width: 100%;
    /* Slider yüksekliği oranlı olarak duyarlı */
    height: clamp(97px, 11vw, 140px); 
    position: relative;
    border-radius: 8px; /* Hafif oval köşeler */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; 
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: #fff;
    box-shadow: 0 0 5px rgba(255,255,255,0.8);
}


/* === ORTA KISIM AKIŞKAN İÇERİK === */
.center-content {
    display: flex;
    justify-content: center;
    padding: clamp(25px, 3vh, 100px) 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.content-images {
    display: flex;
    flex-direction: column;
    align-items: center; /* Fotoğrafları ortala */
    /* Fotoğraflar arası boşluğu css'den margin-bottom üzerinden vereceğiz, 
       0.mp4 (video) ile ilk görselin birbirinin üstüne binebilmesi için gap iptal */
    /* Arka plan görselindeki ortadaki kağıt alanı referans alınarak yüzde verildi */
    /* Ekranın genişliğine göre (vw bazlı) ölçeklenir */
    width: clamp(300px, 45vw, 850px);
    max-width: 100%;
    padding: 0 clamp(10px, 1.5vw, 20px);
}

.content-images img {
    /* CSS efektleri sıfırlandı, genişlik containerı tamamen kaplayacak */
    width: 89.3%;
    height: auto;
    margin-bottom: clamp(0px, 3vw, 0px); /* Eski gap değeri buraya taşındı */
    position: relative;
    z-index: 2; /* Video ile çakıştığında imaj üstte kalması için */
}

/* 0 Numaralı Hero Videosu (0.mp4) CSS Stili */
.top-hero-video {
    width: 81%;
    height: auto;
    object-fit: cover;
    margin-bottom: -50px; /* İlk görselin videonun üzerine binmesi için negatif margin */
    position: relative;
    border-radius: 15px;
    z-index: 1; /* Üzerine binecek görselden altta kalmalı */
}
@media (max-width: 900px) {
    .top-hero-video {
        margin-bottom: -30px;
    }
}
/* Sadece mobil ya da ekran küçüldüğünde bu binme oranını değiştirmek isterseniz: */
@media (max-width: 900px) {
    .top-hero-video {
        margin-bottom: -30px;
        width: 96%;
    }
}


/* === MOBİL İÇİN ALT NAVİGASYON (VARSAYILAN OLARAK GİZLİ) === */
.mobile-bottom-nav {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2a2a2a; /* Koyu arka plan */
    border-top: 2px solid #c0965b; /* Esinlenilmiş altın sarısı ince çizgi */
    z-index: 100;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.6);
    padding-bottom: calc(env(safe-area-inset-bottom, 12px) + 10px);
}

/* Mobil Buton Tasarımı (Masaüstünden esinlenilmiş) */
.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 5px;
    transition: transform 0.2s ease;
}

.mobile-nav-btn:active {
    transform: scale(0.95);
}

.mobile-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 3px solid #c0965b; /* Masaüstü stili */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.mobile-icon-wrapper i {
    color: #7b6245;
    font-size: 20px;
}

.mobile-nav-text {
    color: #fff;
    font-family: 'Lilita One', 'Arial Black', sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    background-color: #c0965b;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #7b6245; /* Butonların yanındaki kahverengi tabı anımsatsın */
}


/* === MOBİL UYUMLULUK (BÜYÜK EKRANLARI GİZLEME) === */
@media (max-width: 900px) {
    /* Mobilde Web görünümündeki sabit elementler kapanır */
    .desktop-only {
        display: none;
    }

    /* Mobil alt menüyü göster */
    .mobile-bottom-nav {
        display: flex;
    }

    /* Orta içerik padding'i alt menüye çarpmasın diye düzeltilir */
    .center-content {
        padding: 15px 0 100px 0; 
    }

    .content-images {
        width: 900px;
    }
    .content-images img {
        width: 100%;
    }
}
