/* Genel Ayarlar ve Arka Plan */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000;
    font-family: Arial, sans-serif;
    overflow: hidden; 
}

/* --- SAHNE KONTEYNERİ --- */
.stage-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; 
    overflow: hidden;
}

/* --- GERÇEKÇİ PERDE STİLLERİ --- */
.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 10;
    
    /* Temel Kırmızı Kadife Rengi ve Kıvrım Efekti */
    background-color: #900000; 
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.5) 70%),
        repeating-linear-gradient(to right, 
            #A00000, 
            #A00000 10px, 
            #700000 11px, 
            #700000 15px, 
            #A00000 16px, 
            #A00000 25px
        );
    background-size: 100% 100%, 50px 100%; 
    
    /* Hızlandırılmış Animasyon (2 saniye) */
    transition: transform 2s cubic-bezier(0.5, 0, 0.5, 1); 
    
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.9);
}

.curtain.left {
    left: 0;
    transform-origin: left;
}

.curtain.right {
    right: 0;
    transform-origin: right;
}

/* --- SAÇAK (VALANCE) VE ALTIN KENAR EFEKTİ --- */
.curtain::before,
.curtain::after {
    content: '';
    position: absolute;
    z-index: 11;
}

/* Üst Saçak Kıvrımı */
.curtain::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #D4AF37, #FFD700); 
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 C25,20 75,20 100,0 L100,100 L0,100 Z" fill="black"/></svg>');
    mask-size: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Altın Rengi Alt Kenar */
.curtain::after {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; 
    background-color: #FFD700; 
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.5);
}

/* --- PERDE AÇILMA ANİMASYONU --- */
.stage-container.open .curtain.left {
    transform: translateX(-95%) scaleX(0.4); 
}

.stage-container.open .curtain.right {
    transform: translateX(95%) scaleX(0.4);
}


/* --- İÇERİK STİLLERİ (LOGO VE MESAJ) --- */
.content {
    text-align: center;
    color: white;
    z-index: 5;
    opacity: 0; 
    transition: opacity 0.5s 2s ease-in; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stage-container.open .content {
    opacity: 1;
}

/* Masaüstü Resim Logo Stilleri */
.main-logo {
    max-width: 80%; 
    height: auto;
    margin: 0 auto;
    width: 600px; /* Masaüstü genişliği */
    max-height: 600px; 
    object-fit: contain; 
    
    /* BEYAZ ÇİZGİ DÜZELTME YÖNTEMLERİ */
    clip-path: inset(0.5px 0.5px 0.5px 0.5px); 
    box-shadow: 0 0 0 2px #000; 
    outline: 2px solid #000;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


.message {
    margin-top: 30px;
    font-size: 1.2em;
    letter-spacing: 0.1em;
}

/* Yapım Aşamasında Yükleme Çubuğu */
.loading-bar {
    width: 200px;
    height: 4px;
    background-color: #333;
    margin: 20px auto 0;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background-color: #D4AF37; 
    animation: loading 2s infinite linear;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* --- MOBİL UYUM (768px ve altı) --- */
@media (max-width: 768px) {
    /* Logo için agresif küçültme ve yükseklik kontrolü */
    .main-logo {
        width: 70%; 
        max-width: 250px; 
        max-height: 40vh; 
        
        /* EKSTRA AGRESİF ÇİZGİ DÜZELTME: Negatif margin ekleyerek kenar hatalarını gizler */
        margin: -2px; 
        
        /* Diğer çizgi düzeltme kuralları (Mobil override) */
        clip-path: inset(0.5px 0.5px 0.5px 0.5px); 
        box-shadow: 0 0 0 2px #000;
        outline: 2px solid #000;
    }

    .message {
        font-size: 0.9em;
        margin-top: 15px; 
    }
    
    .curtain::before {
        height: 50px; 
    }
}