/**
 * Video Ad Player Styles - Minimalist
 */

.video-ad-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
}

.video-ad-container.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-ad-overlay {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-ad-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Kontroller - Alta yerleştirildi */
.video-ad-controls {
    position: absolute;
    bottom: 64px;
    /* Bu değeri değiştirerek konumu ayarlayabilirsiniz: 16px, 24px, 32px, vs */
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 10;
}

.video-ad-controls>* {
    pointer-events: auto;
}

/* Reklam göstergesi */
.ad-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-badge {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ad-counter {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Skip butonu */
.ad-skip-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.ad-skip-countdown {
    display: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.ad-skip-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.75);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}

.ad-skip-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.ad-skip-btn i {
    font-size: 11px;
}

/* Click overlay */
.ad-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
}

/* Play prompt (autoplay engellendiğinde) */
.play-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-align: center;
    z-index: 10;
}

.play-prompt i {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}

.play-prompt:hover i {
    color: #fff;
}

.play-prompt span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

/* Video Preview Overlay - Pre-roll öncesi */
.video-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.video-preview-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.video-preview-play {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.video-preview-overlay:hover .video-preview-play {
    transform: scale(1.05);
}

.video-preview-play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: background 0.2s ease;
}

.video-preview-overlay:hover .video-preview-play-icon {
    background: rgba(255, 0, 0, 1);
}

.video-preview-play-icon i {
    font-size: 32px;
    color: #fff;
    margin-left: 4px;
}

.video-preview-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .video-preview-play-icon {
        width: 64px;
        height: 64px;
    }

    .video-preview-play-icon i {
        font-size: 24px;
    }

    .video-preview-text {
        font-size: 14px;
    }
}

/* Video player wrapper */
.video-player-wrapper {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .video-ad-controls {
        bottom: 20px;
    }

    .ad-badge,
    .ad-counter {
        padding: 5px 8px;
        font-size: 10px;
    }

    .ad-skip-countdown,
    .ad-skip-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .play-prompt i {
        font-size: 44px;
    }
}

@media (max-width: 480px) {
    .video-ad-controls {
        bottom: 16px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ad-skip-container {
        align-self: flex-end;
    }
}