/* Shared styles for gallery subpages: portrete, evenimente, produse, travel */
@font-face { font-family: 'Font Awesome 6 Free'; font-display: swap; }
@font-face { font-family: 'Font Awesome 6 Brands'; font-display: swap; }

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #4338ca;
    --accent-hover: #6366f1;
}

html { overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; overflow-x: hidden; background: var(--bg-primary); color: var(--text-primary); }

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    z-index: 9999;
}

.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo { font-size: 2rem; font-weight: bold; margin-bottom: 1.5rem; }
.preloader-bar { width: 150px; height: 3px; background: #1a1a1a; border-radius: 3px; overflow: hidden; }
.preloader-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    width: 0%;
    animation: loading 1.2s ease-in-out forwards;
}
@keyframes loading { from { width: 0%; } to { width: 100%; } }

.cursor-glow {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}
@media (max-width: 768px) { .cursor-glow { display: none; } }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6366f1, #818cf8); border-radius: 4px; }

.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 1rem;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.img-blur-load { filter: blur(20px); transform: scale(1.1); transition: filter 0.5s ease, transform 0.5s ease; }
.img-blur-load.loaded { filter: blur(0); transform: scale(1); }

.gallery-item {
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}
.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.1) rotateX(2deg) rotateY(2deg); filter: brightness(0.8); }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.lightbox-btn:hover { background: rgba(99, 102, 241, 0.3); border-color: #6366f1; }
#lightbox-prev:hover, #lightbox-next:hover { transform: translateY(-50%) scale(1.1); }
