/* ========================================
   PERFORMANCE & ANIMATION OPTIMIZATIONS
   ======================================== */

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

/* Loading Skeleton */
.loading-skeleton {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

/* Lazy Load Images - Smooth transition */
img.lazy-load {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Artist Card Hover - Faster */
.artist-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    cursor: pointer;
}

.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.artist-card img {
    transition: transform 0.3s ease;
    will-change: transform;
}

.artist-card:hover img {
    transform: scale(1.05);
}

/* Event Card Animations */
.event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* News Item Styling */
.news-item {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.news-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.news-date {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: #fff;
}

.news-content {
    color: #d0d0d0;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

.news-link {
    color: #10b981;
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #059669;
}

/* Event Link Styling */
.event-link {
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.event-link:hover {
    background: rgba(255,255,255,0.2);
}

.event-description {
    color: #b0b0b0;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Past Event Styling */
.past-event {
    opacity: 0.6;
}

.past-event:hover {
    opacity: 0.8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Performance: GPU Acceleration */
.artist-card,
.event-card,
.news-item,
.hero-nav-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .fade-in {
        animation-duration: 0.3s;
    }
    
    .artist-card:hover,
    .event-card:hover,
    .news-item:hover {
        transform: none;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
