/**
 * Featured Campaigns Section Styles
 */

/* Main Section */
.cn-featured-campaigns-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Section Title */
.cn-featured-campaigns-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

/* Section Description */
.cn-featured-campaigns-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.6;
}

/* Grid Layout */
.cn-featured-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
}

/* Campaign Card */
.cn-featured-campaign {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.cn-featured-campaign:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

/* Video Wrapper */
.cn-featured-video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
}

/* Video Player */
.cn-featured-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.cn-featured-player-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.cn-featured-player video,
.cn-featured-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Campaign Title */
.cn-featured-campaign-title {
    padding: 15px 20px 10px;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.cn-featured-campaign-title a {
    color: #00f0ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cn-featured-campaign-title a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

/* Campaign Description */
.cn-featured-campaign-description {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Cyberpunk Theme */
.cn-featured-theme-cyberpunk .cn-featured-campaigns-title {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #0ff, #0090ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
}

.cn-featured-theme-cyberpunk .cn-featured-campaigns-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, #0ff, #0090ff);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.cn-featured-theme-cyberpunk .cn-featured-campaign {
    border: 1px solid rgba(0, 240, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.cn-featured-theme-cyberpunk .cn-featured-campaign:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    border-color: rgba(0, 240, 255, 0.6);
}

/* Cyberpunk Player */
.cn-featured-player-cyberpunk .cn-featured-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.cn-featured-player-cyberpunk .cn-featured-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 240, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    z-index: 11;
    opacity: 0.5;
}

.cn-featured-player-cyberpunk .cn-featured-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.3);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cn-featured-player-cyberpunk:hover .cn-featured-glow {
    opacity: 1;
}

/* Custom Controls */
.cn-featured-player-cyberpunk .mejs-controls {
    background: rgba(0, 0, 20, 0.7) !important;
    border-top: 1px solid rgba(0, 240, 255, 0.3) !important;
}

.cn-featured-player-cyberpunk .mejs-time-total {
    background: rgba(0, 50, 50, 0.5) !important;
    border-radius: 0 !important;
    height: 5px !important;
}

.cn-featured-player-cyberpunk .mejs-time-current {
    background: linear-gradient(to right, #0ff, #0090ff) !important;
}

.cn-featured-player-cyberpunk .mejs-button button {
    color: #0ff !important;
}

/* Neon Theme Variation */
.cn-featured-theme-neon .cn-featured-campaigns-title {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}

.cn-featured-theme-neon .cn-featured-campaign {
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.cn-featured-theme-neon .cn-featured-campaign:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

.cn-featured-theme-neon .cn-featured-campaign-title a {
    color: #ff00ff;
}

.cn-featured-theme-neon .cn-featured-campaign-title a:hover {
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.8);
}

/* Minimal Theme Variation */
.cn-featured-theme-minimal .cn-featured-campaigns-title {
    color: #fff;
    text-shadow: none;
}

.cn-featured-theme-minimal .cn-featured-campaign {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #111;
}

.cn-featured-theme-minimal .cn-featured-campaign:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cn-featured-theme-minimal .cn-featured-campaign-title a {
    color: #fff;
}

.cn-featured-theme-minimal .cn-featured-campaign-title a:hover {
    color: #eee;
    text-shadow: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .cn-featured-campaigns-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: 20px;
    }
    
    .cn-featured-campaigns-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cn-featured-campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .cn-featured-campaigns-title {
        font-size: 1.8rem;
    }
    
    .cn-featured-campaigns-description {
        font-size: 1rem;
    }
} 
/* Site-specific overrides */
.cn-featured-campaigns-section {
    background-color: #000 !important;
    color: #00f0ff !important;
    margin: 0 !important;
    padding: 40px 20px !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Black background for the entire section */
.cn-featured-campaigns-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
}

.cn-featured-campaigns-title {
    color: #00f0ff !important;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.9) !important;
    font-family: 'Courier New', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* Center a single video, but maintain grid for multiple */
.cn-featured-campaigns-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 30px !important;
    justify-items: center !important;
}

/* Special case for single video */
.cn-featured-campaigns-grid:only-child {
    justify-content: center !important;
}

/* If there's only one campaign, center it */
.cn-featured-campaign:only-child {
    grid-column: 2 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.cn-featured-campaign {
    background-color: #000 !important;
    border: 2px solid rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5) !important;
    width: 100% !important;
    max-width: 500px !important;
    position: relative !important;
    overflow: hidden !important;
}

.cn-featured-campaign:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #0ff;
    pointer-events: none;
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
}

/* Cyberpunk video player */
.cn-featured-video-wrapper {
    max-height: 350px !important;
    height: auto !important;
    position: relative !important;
    overflow: hidden !important;
}

.cn-featured-player {
    border: 1px solid #0ff !important;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.4) !important;
}

.cn-featured-player video {
    max-width: 100% !important;
    border: 1px solid rgba(0, 255, 255, 0.5) !important;
}

/* Enhanced cyberpunk theme */
.cn-featured-player-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 10 !important;
    mix-blend-mode: overlay !important;
}

.cn-featured-scanlines {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 240, 255, 0.05) 50%) !important;
    background-size: 100% 3px !important;
    z-index: 11 !important;
    opacity: 0.7 !important;
}

.cn-featured-glow {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.5) !important;
    z-index: 10 !important;
    opacity: 1 !important;
}

/* Campaign title styling */
.cn-featured-campaign-title {
    border-top: 1px solid rgba(0, 240, 255, 0.3) !important;
    background-color: rgba(0, 20, 40, 0.8) !important;
    text-align: center !important;
}

.cn-featured-campaign-title a {
    color: #0ff !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

/* Enhanced Cyberpunk Player Controls - Complete Redesign */
.mejs-controls {
    background: linear-gradient(to right, rgba(0, 30, 50, 0.95), rgba(0, 10, 20, 0.95)) !important;
    border-top: 2px solid #0ff !important;
    height: 45px !important;
    padding: 0 !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4) !important;
}

/* Play button with neon glow */
.mejs-playpause-button button {
    background: transparent !important;
    width: 40px !important;
    height: 40px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Hide default button image */
.mejs-playpause-button button:after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: none !important;
}

/* Custom play icon */
.mejs-play button:before {
    content: '' !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 10px solid transparent !important;
    border-bottom: 10px solid transparent !important;
    border-left: 15px solid #0ff !important;
    position: absolute !important;
    left: 55% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    filter: drop-shadow(0 0 5px #0ff) drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)) !important;
    z-index: 2 !important;
}

/* Custom pause icon */
.mejs-pause button:before {
    content: '' !important;
    width: 5px !important;
    height: 20px !important;
    background-color: #0ff !important;
    position: absolute !important;
    left: 45% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 0 5px #0ff, 0 0 10px rgba(0, 255, 255, 0.8) !important;
    z-index: 2 !important;
}

.mejs-pause button:after {
    content: '' !important;
    width: 5px !important;
    height: 20px !important;
    background-color: #0ff !important;
    position: absolute !important;
    left: 55% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 0 5px #0ff, 0 0 10px rgba(0, 255, 255, 0.8) !important;
    z-index: 2 !important;
}

/* Hover effect for play/pause */
.mejs-playpause-button:hover button:before,
.mejs-playpause-button:hover button:after {
    filter: drop-shadow(0 0 8px #0ff) drop-shadow(0 0 15px rgba(0, 255, 255, 0.9)) !important;
    border-left-color: #6ff !important;
    background-color: #6ff !important;
}

/* Cool progress bar */
.mejs-time-rail {
    height: 10px !important;
    padding-top: 17px !important;
    margin-left: 5px !important;
}

.mejs-time-total {
    background: rgba(0, 20, 30, 0.6) !important;
    height: 6px !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 255, 255, 0.4) !important;
    overflow: visible !important;
}

.mejs-time-loaded {
    background: linear-gradient(to right, rgba(0, 80, 100, 0.3), rgba(0, 100, 120, 0.4)) !important;
    border-radius: 0 !important;
    height: 6px !important;
}

.mejs-time-current {
    background: linear-gradient(to right, #0cf, #00ffaa) !important;
    border-radius: 0 !important;
    height: 6px !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6) !important;
    position: relative !important;
}

/* Pulse animation for progress */
@keyframes progressPulse {
    0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.6); }
    50% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.8); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.6); }
}

.mejs-time-current {
    animation: progressPulse 2s infinite !important;
}

/* Progress handle */
.mejs-time-handle, 
.mejs-time-handle-content {
    width: 12px !important;
    height: 12px !important;
    background: #0ff !important;
    border: 2px solid #000 !important;
    border-radius: 50% !important;
    top: -3px !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8) !important;
    display: block !important;
}

/* Time display */
.mejs-time {
    color: #0ff !important;
    font-family: 'Courier New', monospace !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5) !important;
    padding: 0 5px !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
}

/* Futuristic Volume control */
.mejs-volume-button button {
    background: transparent !important;
    position: relative !important;
}

.mejs-volume-button button:before {
    content: '\25B2' !important;
    font-family: monospace !important;
    font-size: 16px !important;
    color: #0ff !important;
    text-shadow: 0 0 5px #0ff !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
}

.mejs-unmute button:before {
    content: '\25B2' !important;
    opacity: 0.5 !important;
}

.mejs-horizontal-volume-slider {
    height: 8px !important;
    margin-top: 15px !important;
}

.mejs-horizontal-volume-total {
    background: rgba(0, 30, 40, 0.6) !important;
    height: 8px !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 3px #000 !important;
}

.mejs-horizontal-volume-current {
    background: linear-gradient(to right, #0cf, #0ff) !important;
    border-radius: 0 !important;
    height: 8px !important;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6) !important;
}

/* Fullscreen button */
.mejs-fullscreen-button button {
    background: transparent !important;
    position: relative !important;
}

.mejs-fullscreen-button button:before {
    content: '\25A1' !important;
    font-family: monospace !important;
    font-size: 16px !important;
    color: #0ff !important;
    text-shadow: 0 0 5px #0ff !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Big play button in center of video */
.mejs-overlay-button {
    background: transparent !important;
    width: 80px !important;
    height: 80px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.mejs-overlay-button:before {
    content: '' !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 25px solid transparent !important;
    border-bottom: 25px solid transparent !important;
    border-left: 40px solid #0ff !important;
    position: absolute !important;
    left: 55% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 20px rgba(0, 255, 255, 0.5)) !important;
    opacity: 0.9 !important;
}

/* Play button glowing effect */
@keyframes playGlow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 20px rgba(0, 255, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 30px rgba(0, 255, 255, 0.7)); }
    100% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 20px rgba(0, 255, 255, 0.5)); }
}

.mejs-overlay-button:before {
    animation: playGlow 2s infinite !important;
}

/* Add digital scanlines to controls */
.mejs-controls:after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, 
                transparent 50%, 
                rgba(0, 255, 200, 0.03) 50%) !important;
    background-size: 100% 2px !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Matrix-style flicker effect */
@keyframes matrixFlicker {
    0% { opacity: 1; }
    3% { opacity: 0.8; }
    5% { opacity: 1; }
    10% { opacity: 1; }
    13% { opacity: 0.9; }
    15% { opacity: 1; }
    90% { opacity: 1; }
    93% { opacity: 0.7; }
    95% { opacity: 1; }
}

.mejs-controls {
    animation: matrixFlicker 10s infinite !important;
}