@charset "UTF-8";
/* CSS Document */

/* ==========================================
   GREET MODAL - TAM STİL DOSYASI
   ========================================== */

/* 1. Ana Karşılanma Ekranı (Arka Plan) */
.greet-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Arka plan koyuluğu */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Her şeyin üstünde görünmesi için */
    cursor: pointer; /* Boşluğa tıklanabilir olduğunu belli eder */
    transition: opacity 0.3s ease;
}

/* 2. Görseli ve Butonu Tutan Kapsayıcı */
.greet-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    cursor: default; /* Görsel üzerindeyken imleci normale döndürür */
}

/* 3. Görsel Ayarları (768x1376 dik yapıya uygun) */
.greet-item {
    display: block;
    max-width: 100%;
    max-height: 85vh; /* Ekranın %85'inden fazla yer kaplamaz */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer; /* Tıklanabilir (link) olduğunu belli eder */
}

/* Görsel üzerine gelince efekt */
.greet-item:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* 4. Kapatma Butonu (Sağ Üstteki X) */
.close-btn {
    position: absolute;
    top: -45px; /* Görselin biraz üstünde durur */
    right: 0;
    color: #ffffff;
    font-size: 40px;
    font-family: Arial, sans-serif;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.close-btn:hover {
    color: #ff4d4d; /* Üzerine gelince kırmızı olur */
    transform: scale(1.1);
}

/* 5. Link Elementi Ayarı */
#greet-image-holder a {
    text-decoration: none;
    display: block;
    outline: none;
}

/* 6. Gizleme Sınıfı (JS ile tetiklenir) */
.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

/* 7. Mobil Uyumluluk */
@media (max-width: 768px) {
    .greet-item {
        max-height: 70vh; /* Mobilde görselin çok büyük olmasını engeller */
    }
    .close-btn {
        top: -35px;
        font-size: 35px;
    }
}

/* Scrollbar Şıklaştırma (Eğer içerik taşarsa) */
.greet-wrapper::-webkit-scrollbar {
    width: 6px;
}
.greet-wrapper::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}