/* --- TEMEL SAYFA AYARLARI --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; 
    font-family: Arial, sans-serif;
    color: white;
}

/* --- INTRO VİDEO STİLLERİ TAMAMEN KALDIRILDI --- */
#intro-video-container,
.intro-video,
#play-intro-button,
#transition-black-overlay {
    display: none !important; /* Tüm intro ile ilgili elementleri gizle */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important; /* Güvenlik için düşük z-index */
}

/* --- ANA İÇERİK BAŞLANGIÇTA GİZLİ MANTIĞI KALDIRILDI --- */
#main-content-wrapper { 
    opacity: 1; /* Başlangıçta görünür */
    visibility: visible; /* Başlangıçta görünür */
    transition: none; /* Geçişleri kaldır */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    background-color: transparent;
}

/* #main-content-wrapper.show sınıfı artık gerekli değil çünkü hep görünür */


/* --- ARKA PLAN VİDEOSU --- */
.background {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; 
}
.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("img/texture.png");
    background-repeat: repeat; 
    opacity: 1; 
    z-index: -1;
    pointer-events: none;
}

/* --- BUTONLAR --- */
.image-links {
    position: absolute;
    top: 79%; 
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1.5s 0.3s forwards;
    z-index: 10;
}
.image-links a img {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.image-links a img:hover {
    transform: scale(1.15);
}

/* --- PAGE CONTAINER --- */
.page-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- LOGO --- */
.main-logo {
    position: absolute;
    top: 0%; 
    left: 50%;
    transform: translateX(-50%);
    max-width: 700px;
    width: 50%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.6));
    animation: fadeIn 2s forwards, pulse-animation 2s infinite 1s;
}

/* --- PROMO GÖRSELLERİ --- */
.promo-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    opacity: 0;
    animation: fadeIn 1.5s 0.2s forwards;
    z-index: 5;
}
.promo-desktop {
    display: block;
    top: 27%;
    max-width: 1480px;
    width: 100%;
    height: auto;
}
.promo-mobile {
    display: none;
}

/* --- GERİ SAYIM --- */
#countdown-container {
    position: absolute;
    top: 86%; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 35px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s 0.6s forwards;
}
.countdown-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    min-height: 110px;
}
.countdown-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 122px; 
    height: 105px;
    background-image: url('img/sayac-arkaplan.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.countdown-number {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    display: block;
	color: #fcd68e;
}
.countdown-label {
    font-family: 'Mena Grotesk', sans-serif;
    font-size: 0.9em;
    margin-top: 5px;
    text-transform: uppercase;
    display: block;
	color: #ffca64;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse-animation {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}





/* ========================================= */
/* --- MOBİL VE DİKEY EKRAN DÜZENİ --- */
/* ========================================= */
@media screen and (orientation: portrait) {
    /* Masaüstü elementleri gizle */
    .promo-desktop { 
        display: none !important;
    }
	
    /* MOBİL İNTRO GİZLENSİN - Bu artık ana CSS'te halledildi */

    /* Ana içerik */
    #main-content-wrapper {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10003 !important;
    }
    .promo-mobile {
        display: block !important;
    }
	
	
    /* Flex Yapı */
 .page-container {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center; 
        width: 100%;
        height: 100vh;
        padding: 2vh 0 4vh 0;
        box-sizing: border-box;
    }
	
    .main-logo {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto; 
        animation: fadeIn 2s forwards; 
        width: 90%; 
        max-width: 500px;
        height: auto;
        max-height: 25vh;
        object-fit: contain;
    }

    .promo-mobile {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 550px;
        height: auto;
        max-height: 45vh; 
        object-fit: contain;
    }

.image-links {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 90%; /* Ekranın %90'ını kaplasın */
        max-width: 450px; /* Çok fazla yayılmasın */
        display: grid; /* Flex yerine Grid kullanıyoruz */
        grid-template-columns: repeat(2, 1fr); /* 2 sütun: yan yana 2 buton */
        gap: 15px; /* Butonlar arası boşluk */
        justify-items: center; /* Butonları yatayda ortalar */
        flex-shrink: 0; 
    }
    
    .image-links a img {
        width: 100%; /* Izgara hücresine göre genişle */
        max-width: 180px; /* Eski 90px yerine daha büyük (180px) yaptık */
        height: auto;
    }
	
    #countdown-container {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 3vw; 
    }

    .countdown-item {
        width: 20vw;
        height: 22vw;
        max-width: 90px;
        max-height: 100px;
        min-width: 60px;
        min-height: 70px;
    }
    
    .countdown-item::before {
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center;
    }

    .countdown-number {
        font-size: clamp(1.2rem, 5vw, 2rem); 
        margin-top: 5px;
    }
    .countdown-label {
        font-size: clamp(0.6rem, 2.5vw, 0.9rem);
    }
}


/* --- DISCORD WIDGET ANA AYARLAR --- */
#discord-widget {
    position: fixed;
    z-index: 10005;
    line-height: 0; /* Boşlukları sıfırla */
    display: block !important; /* Görünürlüğü zorla */
}

#discord-widget img {
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease; /* Büyüme animasyonu buraya */
    display: block;
}

/* --- MASAÜSTÜ AYARLARI --- */
@media screen and (min-width: 1025px) {
    #discord-widget {
        bottom: 30px; /* Alttan mesafe (İstediğin gibi değiştir) */
        left: 30px;   /* Soldan mesafe (İstediğin gibi değiştir) */
    }
    
    #discord-widget img {
        width: 265px; /* Masaüstü ideal boyutu */
    }

    /* Fare üzerine gelince büyüme efekti */
    #discord-widget a:hover img {
        transform: scale(1.1);
    }
}

/* Mobilde (1024px ve altı) widget'ı gizle */
@media (max-width: 1024px) {
  #discord-widget {
    display: none !important;
  }
}
