/**
 * YouTube Reklam Video - Stil Dosyası
 */

/* Container */
.yav-container {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16 / 9;
}

/* Thumbnail */
.yav-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.yav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.yav-thumbnail:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Play Button */
.yav-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.yav-thumbnail:hover .yav-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.yav-play-button svg {
    width: 68px;
    height: 48px;
}

.yav-play-button-bg {
    transition: fill 0.2s ease;
}

.yav-thumbnail:hover .yav-play-button-bg {
    fill: #ff0000;
}

/* Ad Overlay */
.yav-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Ad Label */
.yav-ad-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 193, 7, 0.95);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Ad Content */
.yav-ad-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
    overflow: hidden;
}

.yav-ad-content iframe,
.yav-ad-content video,
.yav-ad-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.yav-ad-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* AdSense Container */
.yav-adsense-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

/* Ad Controls */
.yav-ad-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Countdown */
.yav-countdown {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yav-countdown::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skip Button */
.yav-skip-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.yav-skip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.yav-skip-btn:active {
    transform: scale(0.98);
}

/* Video Player */
.yav-video-player {
    width: 100%;
    height: 100%;
}

.yav-video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading State */
.yav-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.yav-loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Progress Bar */
.yav-progress-bar {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.yav-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Responsive */
@media (max-width: 768px) {
    .yav-container {
        border-radius: 8px;
        margin: 10px auto;
    }

    .yav-play-button svg {
        width: 50px;
        height: 35px;
    }

    .yav-ad-label {
        font-size: 10px;
        padding: 3px 8px;
    }

    .yav-ad-controls {
        padding: 10px 15px;
    }

    .yav-countdown {
        font-size: 12px;
    }

    .yav-skip-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .yav-play-button svg {
        width: 40px;
        height: 28px;
    }

    .yav-ad-content {
        padding: 50px 10px 70px;
    }
}

/* IMA Container */
.yav-ima-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
}

.yav-ima-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.yav-ima-ad-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
}

.yav-ima-container .yav-ad-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 193, 7, 0.95);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.yav-ima-container .yav-ad-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 15;
}

.yav-ima-container .yav-countdown {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.yav-ima-container .yav-skip-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}