/* ============================================
   GALLERY PAGE STYLES
   Cyberpunk aesthetic image gallery
   ============================================ */

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    background: var(--darker-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.filter-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.filter-btn.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: var(--dark-bg);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 5rem;
    max-width: 1600px;
    margin: 0 auto;
    background: var(--dark-bg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.hidden {
    display: none;
}

.gallery-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover .gallery-image {
    border-color: var(--neon-pink);
}

/* Image Placeholders with Different Themes */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--card-bg);
    transition: var(--transition-medium);
}

.space-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

.drink-bg {
    background: linear-gradient(135deg, #2d1b2e 0%, #1a1a2e 50%, #16213e 100%);
}

.people-bg {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #2d1b2e 100%);
}

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

.image-placeholder.neon-cyan {
    box-shadow: inset 0 0 50px rgba(0, 245, 255, 0.1);
}

.image-placeholder.pink {
    box-shadow: inset 0 0 50px rgba(255, 0, 110, 0.1);
}

.image-placeholder.purple {
    box-shadow: inset 0 0 50px rgba(157, 0, 255, 0.1);
}

.image-placeholder.cyan {
    box-shadow: inset 0 0 50px rgba(0, 245, 255, 0.1);
}

.placeholder-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 4px;
    z-index: 2;
    transition: var(--transition-medium);
}

.gallery-item:hover .placeholder-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.8);
}

/* Holo Overlay Effect */
.holo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 245, 255, 0.05) 25%,
        transparent 50%,
        rgba(255, 0, 110, 0.05) 75%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Scan Lines */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 245, 255, 0.03) 2px,
        rgba(0, 245, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 2;
    animation: scanline-move 10s linear infinite;
}

@keyframes scanline-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

/* Gallery Info */
.gallery-info {
    padding: 1.5rem;
    background: var(--card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-info {
    background: rgba(18, 18, 26, 0.95);
    border-top-color: var(--neon-pink);
}

.gallery-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.gallery-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

/* Gallery Item Hover Animation */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transition: left 0.5s ease;
    z-index: 10;
}

.gallery-item:hover::before {
    left: 100%;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.02);
}

.gallery-item:hover .scan-lines {
    animation-duration: 2s;
}

/* Stats Section */
.stats-section {
    background: var(--darker-bg);
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number.counting {
    animation: number-pulse 0.5s ease;
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: var(--dark-bg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-primary);
}

.lightbox-caption h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    color: var(--text-secondary);
}

/* Gallery Grid Animation */
.gallery-item {
    animation: fade-in-up 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .gallery-filters {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
        min-height: 44px;
    }
    
    .gallery-image {
        aspect-ratio: 16/10;
    }
    
    .placeholder-text {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .gallery-info {
        padding: 1rem;
    }
    
    .gallery-info h3 {
        font-size: 1rem;
    }
    
    .gallery-info p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .gallery-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
    
    /* Stats section mobile */
    .stats-section {
        padding: 3rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Lightbox mobile */
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .lightbox-close {
        top: -40px;
        right: 0;
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .lightbox-nav {
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-caption {
        bottom: -50px;
    }
    
    .lightbox-caption h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        padding: 1rem 0.75rem;
        gap: 1rem;
    }
    
    .gallery-filters {
        padding: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    .placeholder-text {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .gallery-info {
        padding: 0.875rem;
    }
    
    .gallery-info h3 {
        font-size: 0.95rem;
    }
    
    .gallery-info p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .placeholder-text {
        font-size: 0.9rem;
    }
    
    .gallery-info h3 {
        font-size: 1rem;
    }
    
    .gallery-info p {
        font-size: 0.85rem;
    }
}