/* 🎯 RedOne Vision - Reklam Yönetim Sistemi CSS */
/* /frontend/css/adManager.css */

/* 🎨 CSS Değişkenleri */
:root {
    --ad-primary: #ff1e28;
    --ad-secondary: #f005b9;
    --ad-gradient: linear-gradient(135deg, #f50505, #f005b9, #f50505);
    --ad-bg-overlay: rgba(0, 0, 0, 0.85);
    --ad-border: rgba(255, 255, 255, 0.2);
    --ad-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    --ad-text-primary: #ffffff;
    --ad-text-secondary: rgba(255, 255, 255, 0.8);
    --ad-text-muted: rgba(255, 255, 255, 0.6);
    --ad-animation-duration: 0.4s;
    --ad-animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 📱 Genel Reklam Container */
.redone-ad-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--ad-animation-duration) var(--ad-animation-easing);
    will-change: transform, opacity;
    z-index: 10;
}

.redone-ad-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--ad-shadow);
}

/* 🏷️ Reklam Badge */
.ad-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ad-gradient);
    color: var(--ad-text-primary);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: adBadgePulse 3s ease-in-out infinite;
}

@keyframes adBadgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(255, 30, 40, 0.4);
    }
}

/* 🖼️ POSTER REKLAM STİLLERİ */
.redone-poster-ad {
    aspect-ratio: 2/3;
    cursor: pointer;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.redone-poster-ad:hover {
    border-color: var(--ad-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 30, 40, 0.3);
}

.redone-poster-ad .ad-poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.redone-poster-ad:hover .ad-poster-image {
    transform: scale(1.1);
}

.redone-poster-ad .ad-overlay {
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.95) 100%);
}

.redone-poster-ad .badge-ad {
    background: var(--ad-gradient);
    color: var(--ad-text-primary);
    animation: adSponsorGlow 2s ease-in-out infinite;
}

@keyframes adSponsorGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 30, 40, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 30, 40, 0.6); }
}

.ad-action-btn {
    background: var(--ad-gradient) !important;
    color: var(--ad-text-primary) !important;
    border: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.ad-action-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(255, 30, 40, 0.4) !important;
}

.ad-close-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--ad-text-secondary) !important;
}

.ad-close-btn:hover {
    background: rgba(255, 0, 0, 0.3) !important;
    color: var(--ad-text-primary) !important;
}

/* 🎬 VIDEO REKLAM STİLLERİ */
.redone-video-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: adVideoFadeIn 0.5s ease-out;
}

.video-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ad-bg-overlay);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-ad-content {
    position: relative;
    width: min(90vw, 600px);
    max-height: 80vh;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--ad-border);
}

.video-ad-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--ad-text-primary);
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-ad-close:hover {
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

.video-ad-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--ad-gradient);
    color: var(--ad-text-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    animation: adVideoBadgePulse 2s ease-in-out infinite;
}

@keyframes adVideoBadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.video-ad-info {
    padding: 20px;
    color: var(--ad-text-primary);
}

.video-ad-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--ad-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-ad-info p {
    color: var(--ad-text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.video-ad-cta {
    background: var(--ad-gradient);
    color: var(--ad-text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-ad-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 30, 40, 0.4);
}

.video-ad-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.video-ad-progress-bar {
    height: 100%;
    background: var(--ad-gradient);
    width: 0%;
    transition: width 0.1s ease;
}

.video-ad-timer {
    position: absolute;
    bottom: 8px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--ad-text-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 📰 BANNER REKLAM STİLLERİ */
.redone-banner-ad {
    grid-column: 1 / -1;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid var(--ad-border);
    box-shadow: var(--ad-shadow);
    animation: adBannerSlideIn 0.6s ease-out;
}

.banner-ad-content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
    min-height: 120px;
}

.banner-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--ad-text-secondary);
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-ad-close:hover {
    background: rgba(255, 0, 0, 0.3);
    color: var(--ad-text-primary);
}

.banner-ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ad-gradient);
    color: var(--ad-text-primary);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.banner-ad-visual {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.banner-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.redone-banner-ad:hover .banner-ad-image {
    transform: scale(1.05);
}

.banner-ad-text {
    flex: 1;
    color: var(--ad-text-primary);
}

.banner-ad-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: var(--ad-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-ad-text p {
    color: var(--ad-text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.banner-ad-cta {
    background: var(--ad-gradient);
    color: var(--ad-text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.banner-ad-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 30, 40, 0.4);
}

/* 🎬 REKLAM MODAL STİLLERİ */
.redone-ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--ad-bg-overlay);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: adModalFadeIn 0.4s ease-out;
}

.ad-modal-content {
    position: relative;
    width: min(90vw, 800px);
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--ad-border);
}

.ad-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--ad-text-primary);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal-close:hover {
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

.ad-modal-video {
    width: 100%;
    height: 400px;
    background: #000;
}

.ad-modal-info {
    padding: 30px;
    color: var(--ad-text-primary);
}

.ad-modal-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--ad-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ad-modal-info p {
    color: var(--ad-text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.ad-modal-cta {
    display: inline-block;
    background: var(--ad-gradient);
    color: var(--ad-text-primary);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-modal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 30, 40, 0.4);
    color: var(--ad-text-primary);
    text-decoration: none;
}

/* 🎨 ANIMASYONLAR */
@keyframes adFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes adFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes adSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes adPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 48px rgba(255, 30, 40, 0.2);
    }
}

@keyframes adBannerSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes adVideoFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes adModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        backdrop-filter: blur(15px);
    }
}

/* 📱 MOBİL RESPONSIVE */
@media (max-width: 768px) {
    .redone-banner-ad {
        margin: 15px 0;
    }
    
    .banner-ad-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }
    
    .banner-ad-visual {
        width: 100%;
        height: 120px;
    }
    
    .video-ad-content {
        width: 95vw;
        max-height: 85vh;
    }
    
    .video-ad-player {
        height: 200px;
    }
    
    .video-ad-info {
        padding: 15px;
    }
    
    .video-ad-info h3 {
        font-size: 1.2rem;
    }
    
    .ad-modal-content {
        width: 95vw;
        max-height: 85vh;
    }
    
    .ad-modal-video {
        height: 250px;
    }
    
    .ad-modal-info {
        padding: 20px;
    }
    
    .ad-modal-info h3 {
        font-size: 1.5rem;
    }
    
    .redone-poster-ad:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .video-ad-content {
        width: 98vw;
    }
    
    .video-ad-player {
        height: 180px;
    }
    
    .banner-ad-content {
        padding: 12px;
    }
    
    .banner-ad-visual {
        height: 100px;
    }
    
    .ad-modal-video {
        height: 200px;
    }
    
    .ad-modal-info {
        padding: 15px;
    }
}

/* 🌟 DARK MODE ÖZEL AYARLARI */
@media (prefers-color-scheme: dark) {
    .redone-banner-ad {
        background: linear-gradient(135deg, #0a0a0a, #1d1d1d);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .video-ad-content,
    .ad-modal-content {
        background: linear-gradient(135deg, #0a0a0a, #1d1d1d);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* 🎯 REDUCED MOTION DESTEĞI */
@media (prefers-reduced-motion: reduce) {
    .redone-ad-container,
    .ad-badge,
    .badge-ad,
    .video-ad-badge,
    .redone-banner-ad {
        animation: none;
    }
    
    .redone-ad-container:hover,
    .redone-poster-ad:hover {
        transform: none;
    }
    
    .ad-action-btn:hover,
    .video-ad-cta:hover,
    .banner-ad-cta:hover,
    .ad-modal-cta:hover {
        transform: none;
    }
}

/* 🔧 UTILITY CLASSES */
.ad-hidden {
    display: none !important;
}

.ad-visible {
    display: block !important;
}

.ad-no-animation {
    animation: none !important;
    transition: none !important;
}

.ad-blur-background {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.ad-glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
