/* =========================
   REKLAM MODALI (YENİLENMİŞ TASARIM)
   ========================= */

/* Modalın Kendisi */
#ad-modal {
    z-index: 9999; /* Her şeyin en üstünde olsun */
}

.ad-card {
    background: #0f172a;
    width: 90%; max-width: 450px;
    padding: 0; /* İç boşluğu sıfırladık, görsel tam otursun */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    overflow: hidden; /* Köşelerden taşmasın */
    position: relative;
    display: flex; flex-direction: column;
}

/* Üst Kısım (Başlık ve İkon) */
.ad-header {
    padding: 30px 30px 10px 30px;
    text-align: center;
}

.ad-icon-box {
    width: 70px; height: 70px;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    color: #ffd700; font-size: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
    animation: glow 2s infinite alternate;
}

.ad-card h2 { color: #fff; font-size: 1.5rem; margin-bottom: 5px; }
.ad-card p { color: #94a3b8; font-size: 0.95rem; }

/* Video Oynatıcı Alanı (Simülasyon) */
.ad-player {
    background: #000;
    height: 220px; /* Video yüksekliği */
    position: relative;
    display: flex; align-items: center; justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}
.ad-player.hidden { display: none; }

/* Yükleniyor Animasyonu */
.ad-loader {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.ad-fake-content {
    text-align: center;
    color: #fff;
    z-index: 2;
}
.ad-fake-content span {
    display: block; font-weight: 700; letter-spacing: 1px; color: #ffd700; margin-bottom: 5px;
}
.ad-fake-content small { color: #64748b; font-size: 0.8rem; }

/* Geri Sayım Sayacı (Sağ Üst Köşe) */
.ad-timer-badge {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; gap: 6px;
    backdrop-filter: blur(4px);
}
.ad-timer-badge i { color: #ffd700; font-size: 0.7rem; }

/* Alt Butonlar */
.ad-actions {
    padding: 25px;
    display: flex; gap: 15px; justify-content: center;
}

.btn-watch {
    flex: 1;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000; border: none; padding: 14px;
    border-radius: 12px; font-weight: 800;
    cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-watch:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 215, 0, 0.25); }

.btn-cancel {
    background: transparent; color: #94a3b8; border: none;
    font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn-cancel:hover { color: #fff; }

/* Animasyonlar */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { from { box-shadow: 0 0 10px rgba(255,215,0,0.1); } to { box-shadow: 0 0 25px rgba(255,215,0,0.3); } }