/* AI Cinematic Event Image Replacements */

.event-image-concert {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.event-image-concert::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250"><defs><linearGradient id="stage" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23ff6b6b;stop-opacity:0.8"/><stop offset="100%" style="stop-color:%23ff3838;stop-opacity:0.4"/></linearGradient><linearGradient id="lights" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ffd93d;stop-opacity:0.6"/><stop offset="50%" style="stop-color:%236bcf7f;stop-opacity:0.4"/><stop offset="100%" style="stop-color:%234361ee;stop-opacity:0.6"/></linearGradient></defs><rect width="400" height="250" fill="%231a1a2e"/><g opacity="0.3"><rect x="0" y="180" width="400" height="70" fill="url(%23stage)"/></g><g transform="translate(200,125)"><circle r="3" fill="%23fff" opacity="0.8"><animate attributeName="opacity" values="0.8;0.3;0.8" dur="2s" repeatCount="indefinite"/></circle></g><g transform="translate(50,100)"><circle r="2" fill="%23ffd93d" opacity="0.6"><animate attributeName="opacity" values="0.6;0.2;0.6" dur="1.5s" repeatCount="indefinite"/></circle></g><g transform="translate(350,110)"><circle r="2" fill="%236bcf7f" opacity="0.6"><animate attributeName="opacity" values="0.6;0.2;0.6" dur="1.8s" repeatCount="indefinite"/></circle></g><path d="M 50 180 L 100 140 L 100 180 Z" fill="%23ff6b6b" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 75 160" to="10 75 160" dur="3s" repeatCount="indefinite" additive="sum"/></path><path d="M 300 180 L 350 140 L 350 180 Z" fill="%234361ee" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 325 160" to="-10 325 160" dur="3s" repeatCount="indefinite" additive="sum"/></path><g transform="translate(200,160)"><rect x="-80" y="-30" width="160" height="60" rx="5" fill="%23000" opacity="0.8"/><rect x="-70" y="-20" width="140" height="40" rx="3" fill="%23222"/><circle cx="-50" cy="0" r="15" fill="%23444"/><circle cx="0" cy="0" r="15" fill="%23444"/><circle cx="50" cy="0" r="15" fill="%23444"/></g><g opacity="0.4"><path d="M 0 0 L 80 180 L 100 180 L 0 0" fill="url(%23lights)"><animateTransform attributeName="transform" type="translate" from="0 0" to="400 0" dur="8s" repeatCount="indefinite"/></path><path d="M 0 0 L 80 180 L 100 180 L 0 0" fill="url(%23lights)"><animateTransform attributeName="transform" type="translate" from="-200 0" to="200 0" dur="8s" repeatCount="indefinite"/></path></g><text x="200" y="230" font-family="Arial, sans-serif" font-size="14" fill="%23fff" text-anchor="middle" opacity="0.6">LIVE CONCERT</text></svg>');
    background-size: cover;
    background-position: center;
}

.event-image-theater {
    background: linear-gradient(135deg, #6a0d0d 0%, #8b0000 50%, #4a0404 100%);
    position: relative;
    overflow: hidden;
}

.event-image-theater::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250"><defs><linearGradient id="curtain" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%238b0000;stop-opacity:1"/><stop offset="100%" style="stop-color:%234a0404;stop-opacity:1"/></linearGradient></defs><rect width="400" height="250" fill="%232c0000"/><path d="M 0 0 Q 50 30 0 60 Q 50 90 0 120 Q 50 150 0 180 Q 50 210 0 250 L 0 0" fill="url(%23curtain)"/><path d="M 400 0 Q 350 30 400 60 Q 350 90 400 120 Q 350 150 400 180 Q 350 210 400 250 L 400 0" fill="url(%23curtain)"/><circle cx="200" cy="50" r="40" fill="%23ffd700" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="4s" repeatCount="indefinite"/></circle><rect x="150" y="150" width="100" height="80" rx="10" fill="%23000" opacity="0.7"/><rect x="160" y="160" width="80" height="60" fill="%23222"/><text x="200" y="195" font-family="serif" font-size="20" fill="%23ffd700" text-anchor="middle">🎭</text></svg>');
    background-size: cover;
    background-position: center;
}

.event-image-sport {
    background: linear-gradient(135deg, #0a4d0a 0%, #1a7d1a 50%, #2eb82e 100%);
    position: relative;
    overflow: hidden;
}

.event-image-sport::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250"><defs><pattern id="grass" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="%231a7d1a"/><rect x="0" y="0" width="1" height="20" fill="%232eb82e" opacity="0.5"/><rect x="10" y="0" width="1" height="20" fill="%232eb82e" opacity="0.5"/></pattern></defs><rect width="400" height="250" fill="url(%23grass)"/><rect x="0" y="100" width="400" height="50" fill="%23fff" opacity="0.1"/><circle cx="200" cy="125" r="30" fill="none" stroke="%23fff" stroke-width="2" opacity="0.3"/><circle cx="200" cy="125" r="3" fill="%23fff" opacity="0.5"/><rect x="0" y="95" width="100" height="60" fill="none" stroke="%23fff" stroke-width="2" opacity="0.2"/><rect x="300" y="95" width="100" height="60" fill="none" stroke="%23fff" stroke-width="2" opacity="0.2"/><g transform="translate(200,125)"><circle r="20" fill="%23fff" opacity="0.8"><animateTransform attributeName="transform" type="rotate" from="0 0 0" to="360 0 0" dur="2s" repeatCount="indefinite"/></circle><path d="M -10 -10 L 10 -10 L 10 10 L -10 10 Z" fill="%23000" opacity="0.3"/></g></svg>');
    background-size: cover;
    background-position: center;
}

.event-image-festival {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 33%, #48dbfb 66%, #ff9ff3 100%);
    position: relative;
    overflow: hidden;
}

.event-image-festival::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 250"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%234a69bd;stop-opacity:1"/><stop offset="100%" style="stop-color:%231e3799;stop-opacity:1"/></linearGradient></defs><rect width="400" height="250" fill="url(%23sky)"/><g opacity="0.8"><circle cx="50" cy="50" r="3" fill="%23fff"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite"/></circle><circle cx="150" cy="30" r="2" fill="%23fff"><animate attributeName="opacity" values="0;1;0" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="250" cy="60" r="3" fill="%23fff"><animate attributeName="opacity" values="0;1;0" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="350" cy="40" r="2" fill="%23fff"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite"/></circle></g><path d="M 50 200 L 80 150 L 110 200 Z" fill="%23ff6b6b" opacity="0.8"/><path d="M 150 200 L 180 140 L 210 200 Z" fill="%23feca57" opacity="0.8"/><path d="M 250 200 L 280 130 L 310 200 Z" fill="%2348dbfb" opacity="0.8"/><rect x="0" y="200" width="400" height="50" fill="%23000" opacity="0.3"/><g transform="translate(200,180)"><circle r="40" fill="none" stroke="%23feca57" stroke-width="3" opacity="0.6"><animate attributeName="r" values="40;50;40" dur="2s" repeatCount="indefinite"/></circle></g></svg>');
    background-size: cover;
    background-position: center;
}

/* Fallback for broken images */
.event-image {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-image.broken-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.event-image.broken-image::after {
    content: '🎵';
    position: absolute;
    font-size: 4rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Cinematic overlay effects */
.event-image-cinematic {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.event-image-cinematic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive image handling */
@media (max-width: 768px) {
    .event-image {
        height: 180px;
    }
    
    .event-image.broken-image::after {
        font-size: 3rem;
    }
}