/* Custom CSS for DJ CEDIX Website */

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.625;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Enhanced Button Styles with Apple-like Design */
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow-light), 0 1px 3px var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 16px var(--shadow-medium), 0 2px 6px var(--shadow-strong);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 8px var(--shadow-light), 0 1px 3px var(--shadow-medium);
}

/* Navigation Styles with Apple-like Blur */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 3px var(--shadow-light);
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    position: relative;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent);
}

/* Hero Section with Apple-style Gradient */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px var(--shadow-light);
}

/* Card Styles with Apple-like Shadows */
.card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-light), 0 1px 3px var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium), 0 4px 12px var(--shadow-strong);
}

/* Music Cards with Enhanced Apple Styling */
.music-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-light), 0 1px 3px var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium), 0 4px 12px var(--shadow-strong);
}

.music-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.music-placeholder-1 {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.music-placeholder-2 {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.music-placeholder-3 {
    background: linear-gradient(135deg, var(--accent-muted) 0%, #059669 100%);
}

/* Event Cards with Apple-style Design */
.event-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow-light), 0 1px 3px var(--shadow-medium);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px var(--shadow-medium), 0 4px 12px var(--shadow-strong);
}

.event-card-purple {
    border-left-color: #8B5CF6;
}

.event-card-green {
    border-left-color: var(--accent-muted);
}

/* Gallery with Apple-style Design */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 16 / 12;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-weight: 500;
    box-shadow: 0 2px 8px var(--shadow-light), 0 1px 3px var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--shadow-medium), 0 4px 12px var(--shadow-strong);
}

.gallery-item:nth-child(1) { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); color: white; }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); color: white; }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, var(--accent-muted) 0%, #059669 100%); color: white; }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%); color: white; }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); color: white; }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%); color: white; }

/* Portrait Image with Apple-style */
.portrait-placeholder {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px var(--shadow-light), 0 1px 3px var(--shadow-medium);
    border: 1px solid var(--border-color);
}

/* Form Styles with Apple-style Design */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px var(--shadow-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), 0 2px 8px var(--shadow-light);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

/* Contact Info with Apple-style */
.contact-info {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-light), 0 1px 3px var(--shadow-medium);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Social Links with Apple-style Design */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.social-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--shadow-medium), 0 2px 8px var(--shadow-strong);
}

.social-link:nth-child(1) { background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%); }
.social-link:nth-child(2) { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }
.social-link:nth-child(3) { background: linear-gradient(135deg, #EC4899 0%, #F97316 100%); }
.social-link:nth-child(4) { background: linear-gradient(135deg, #F97316 0%, #DC2626 100%); }
.social-link:nth-child(5) { background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%); }

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 56rem;
    max-height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Section Spacing */
.section {
    padding: 5rem 0;
}

.section-lg {
    padding: 8rem 0;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto 4rem;
}

/* Footer with Apple-style Design */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-link:hover {
    color: var(--accent);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .card,
    .music-card,
    .event-card {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .lightbox,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid black;
    }
    
    .btn-secondary {
        border: 2px solid black;
        background: white;
        color: black;
    }
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Selection Colors */
::selection {
    background-color: var(--accent);
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s infinite;
    color: var(--gray-400);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}