/* Genel modal görünümü */
.pbg-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

/* Modal aktif olduğunda göster */
.pbg-modal.show {
    display: flex;
}

/* Modal içerik kutusu */
.pbg-modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    position: relative;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s ease;
}

/* Video içeriği */
.pbg-modal-image {
    width: 100%;
    max-height: 280px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Başlık */
.pbg-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0;
    color: #333;
}

/* Geri sayım */
.pbg-countdown {
    font-size: 16px;
    color: #444;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* İlerleme çubuğu container */
.pbg-progress-container {
    background-color: #eee;
    border-radius: 6px;
    height: 8px;
    width: 100%;
    overflow: hidden;
    margin: 10px 0 20px;
}

/* İlerleyen bar */
.pbg-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    transition: width 1s linear;
}

/* Atla butonu */
.pbg-confirm-btn {
    padding: 10px 20px;
    font-size: 15px;
    background-color: #ff4b2b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pbg-confirm-btn:hover {
    background-color: #e63b1a;
}

/* Kapat (X) butonu */
.pbg-close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    color: #aaa;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pbg-close-btn:hover {
    color: #333;
}

/* Fade-in animasyonu */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
    .pbg-modal-content {
        padding: 20px;
    }

    .pbg-modal-title {
        font-size: 20px;
    }

    .pbg-confirm-btn {
        width: 100%;
    }
}
.pbg-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pbg-skip-info {
    font-style: italic;
    color: #666;
    text-align: center;
}
