@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
    --accent-blue: #007bff;
    --bright-cyan: #00f2ff;
    --dark-bg: #020205;
    --glass-bg: rgba(10, 25, 47, 0.9);
    --glass-border: rgba(255, 255, 255, 0.15);
}

body, html {
    margin: 0; padding: 0;
    background: var(--dark-bg);
    color: white;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* REPARARE DESIGN UPLOAD */
.upload-zone-wrapper {
    width: 100%;
    box-sizing: border-box; /* Previne ieșirea din chenar */
    margin: 20px 0;
}

.upload-zone-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* Ocupă tot spațiul disponibil */
    box-sizing: border-box;
}

.upload-zone-box:hover {
    border-color: #00f2ff;
    background: rgba(0, 242, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 242, 255, 0.1);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

#file-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-align: center;
}

.btn-portal-back {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03); /* Foarte discret */
    border: 1px solid rgba(0, 242, 255, 0.2); /* Doar o urmă de cyan */
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.btn-portal-back .icon {
    font-size: 18px;
    line-height: 0;
    margin-top: -2px;
    color: var(--bright-cyan);
}

.btn-portal-back:hover {
    color: #fff;
    background: rgba(0, 242, 255, 0.1);
    border-color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    transform: translateX(5px);
}

/* Adaptare pentru mobil să nu stea peste alte elemente */
@media (max-width: 768px) {
    .btn-portal-back {
        top: 15px;
        left: 15px;
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* Fix pentru bara de progres care să nu fie prea groasă ca în screenshot */
.progress-container {
    height: 8px !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #007bff, #00f2ff);
    box-shadow: 0 0 10px #007bff;
}
/* --- AUTENTIFICARE --- */
.login-container, .upload-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('fundal-auth.webp') no-repeat center center fixed;
    background-size: cover;
    padding: 20px;
}

form h2 { font-weight: 900; text-transform: uppercase; font-size: 1.4rem; margin-bottom: 5px; }
form h3 { font-size: 0.9rem; color: var(--bright-cyan); margin-bottom: 25px; font-weight: 400; }

input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: white;
    box-sizing: border-box;
}

.login-container {
    perspective: 1000px; /* Creează adâncime 3D */
}

form {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
        /* Asigură-te că nu ai alt 'transform' aici care să se bată cu JS-ul */
    transition: transform 0.1s ease-out; 
    transform-style: preserve-3d;
    will-change: transform; /* Optimizează performanța pentru mișcare */
}

form img {
    width: 140px; height: 140px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 10px var(--accent-blue));
}

form button, input[type="submit"] {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--accent-blue) !important; /* Forțăm culoarea */
    color: white !important; /* Forțăm textul alb */
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    display: block; /* Să nu arate ca un simplu link */
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

form button:hover, input[type="submit"]:hover {
    background: var(--bright-cyan) !important;
    color: black !important;
    transform: scale(1.02);
}


/* --- HEADER --- */


.main-header {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 1000;
}

.main-header h1 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(90deg, #ffffff, var(--bright-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}


/* --- HEADER BUTTONS PREMIUM ANIMATIONS --- */
.right-buttons { 
    display: flex; 
    gap: 15px; 
    align-items: center;
}

.right-buttons a {
    text-decoration: none;
    font-weight: 800; /* Mai gros pentru impact */
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animație elastică */
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

/* BUTON ÎNCARCĂ (GREEN GLOW) */
.upload-btn-header { 
    color: #2ecc71 !important; 
    border: 1px solid rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.05);
}

.upload-btn-header:hover { 
    background: #2ecc71 !important; 
    color: #000 !important; 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* BUTON DESCARCĂ (WHITE/GLASS SHINE) */
.download-all { 
    color: #ffffff !important; 
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-all:hover { 
    background: #ffffff !important; 
    color: #000 !important; 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* BUTON LOGOUT (RED NEON) */
.logout { 
    color: #ff4d4d !important; 
    border: 1px solid rgba(255, 77, 77, 0.2);
    background: rgba(255, 77, 77, 0.05);
}

.logout:hover { 
    background: #ff4d4d !important; 
    color: #ffffff !important; 
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.4);
}

/* --- EFECT DE STRĂLUCIRE (SHINE) LA HOVER --- */
.right-buttons a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s;
    opacity: 0;
}

.right-buttons a:hover::after {
    left: 120%;
    opacity: 1;
}

/* AJUSTARE MOBIL HEADER */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 10px;
    }
    .right-buttons {
        gap: 8px;
    }
    .right-buttons a {
        padding: 10px 12px;
        font-size: 0.65rem;
    }
}
/* --- GALERIE --- */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 5%;
}

.item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: 0.4s;
    position: relative;
}

.item:hover { transform: translateY(-8px); border-color: var(--bright-cyan); }
.item img, .video-thumb { width: 100%; height: 260px; object-fit: cover; cursor: pointer; display: block; }

/* --- STILIZARE VIDEO PREVIEW PREMIUM --- */
.video-container {
    position: relative;
    width: 100%;
    height: 260px; /* Aceeași înălțime cu pozele */
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Îl facem puțin mai închis pentru a scoate iconița în evidență */
    transition: 0.4s;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(0,123,255,0.2) 0%, rgba(0,0,0,0) 70%);
    transition: 0.4s;
}

.play-icon {
    font-size: 50px;
    color: white;
    text-shadow: 0 0 20px var(--accent-blue);
    margin-bottom: 10px;
    transition: 0.3s;
}

.video-label {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--bright-cyan);
    border: 1px solid var(--bright-cyan);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 242, 255, 0.1);
}

/* Efecte la Hover */
.item:hover .video-thumb {
    transform: scale(1.05);
    opacity: 0.8;
}

.item:hover .play-icon {
    transform: scale(1.2);
    color: var(--bright-cyan);
}

.item:hover .video-overlay {
    background: radial-gradient(circle, rgba(0,123,255,0.4) 0%, rgba(0,0,0,0) 80%);
}

/* Adaptare Mobil */
@media (max-width: 768px) {
    .video-container { height: 180px; }
    .play-icon { font-size: 35px; }
}

/* --- MODAL PREVIEW (REPARAT FINAL) --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(2, 2, 5, 0.98); /* Fundal aproape negru complet */
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal.active { display: flex; }


/* Stilul de bază pentru săgeți */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    z-index: 2100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Poziționare separată Stânga/Dreapta */
.nav-arrow.left { left: 30px; }
.nav-arrow.right { right: 30px; }

/* Animație la Hover (Specific brandului DJ Victorr) */
.nav-arrow:hover {
    background: rgba(0, 242, 255, 0.2); /* Cyan-ul tău specific */
    border-color: #00f2ff;
    color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Animație la Click */
.nav-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

/* Adaptare pentru Mobil */
@media (max-width: 768px) {
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.5); /* Mai vizibil pe ecrane mici */
    }
    
    .nav-arrow.left { left: 10px; }
    .nav-arrow.right { right: 10px; }
    
    /* Pe mobil, ascundem hover-ul pentru a evita bug-urile vizuale */
    .nav-arrow:hover {
        transform: translateY(-50%) scale(1);
    }
}


.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Adăugăm un mic spațiu jos pentru a scoate butonul de pe poză */
    padding-bottom: 80px; 
}

#modal-img, #modal-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
}

/* BUTON DESCARCĂ - Complet sub poză */
.download-btn {
    position: absolute;
    bottom: 0; /* Îl forțăm la baza wrapper-ului, sub poză */
    padding: 15px 45px;
    background: var(--accent-blue);
    color: white !important;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

.download-btn:hover {
    background: var(--bright-cyan);
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,242,255,0.4);
}

/* X-ul CU ANIMAȚIE */
.close-btn {
    position: fixed; /* Rămâne fix în colț pentru a nu se mișca cu poza */
    top: 30px;
    right: 30px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: block;
    width: 50px;
    height: 50px;
    text-align: center;
}

.close-btn:hover {
    color: var(--bright-cyan);
    transform: rotate(180deg) scale(1.2);
    text-shadow: 0 0 15px var(--bright-cyan);
}

/* Ajustare Mobil */
@media (max-width: 768px) {
    .modal-content-wrapper {
        max-width: 95%;
        padding-bottom: 70px;
    }
    
    .close-btn {
        top: 20px;
        right: 20px;
        font-size: 35px;
    }

    .download-btn {
        padding: 12px 30px;
        font-size: 0.8rem;
    }
}

/* --- NOTIFICARE GDPR REFACUTĂ (STIL BUTON DESCARCARE) --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 550px;
    background: rgba(10, 25, 47, 0.95); /* Sticlă mai opacă pentru contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 30px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.cookie-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

.cookie-text b {
    color: var(--bright-cyan);
    letter-spacing: 0.5px;
}

/* BUTONUL "AM ÎNȚELES" - STILIZAT CA BUTONUL DE DESCARCARE */
.cookie-accept {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent-blue);
    color: #ffffff !important;
    text-decoration: none;
    border: none;
    border-radius: 50px; /* Formă de pastilă, exact ca la preview */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    white-space: nowrap;
}

.cookie-accept:hover {
    background: var(--bright-cyan);
    color: #000000 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 242, 255, 0.5);
}

/* --- ADAPTIVITATE MOBIL GDPR --- */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        bottom: 20px;
        padding: 25px 20px;
        text-align: center;
        width: 90%;
        gap: 15px;
    }

    .cookie-accept {
        width: 100%; /* Buton plin pe mobil pentru click ușor */
        padding: 16px;
    }
}

/* --- STILURI SPECIFICE UPLOAD --- */
.upload-logo {
    width: 80px !important;
    height: auto !important;
    margin-bottom: 10px !important;
}

.storage-info {
    margin: 20px 0;
    text-align: left;
}

.storage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.percentage { color: var(--bright-cyan); }

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--bright-cyan));
    box-shadow: 0 0 10px var(--accent-blue);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.mb-info {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 5px;
}

/* Custom File Input */
.file-input-wrapper {
    margin: 25px 0;
}

input[type="file"] {
    display: none;
}

.file-input-wrapper label {
    display: block;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.file-input-wrapper label:hover {
    border-color: var(--bright-cyan);
    background: rgba(0, 242, 255, 0.05);
}

.status-msg {
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 10px 0;
}

.status-msg.success { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status-msg.error { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }

.back-link { margin-top: 25px; }
.back-link a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: 0.3s;
}
.back-link a:hover { opacity: 1; color: var(--bright-cyan); }

/* FIX pentru erorile tale din poze: */
.galerie {
    display: grid;
    /* Folosește auto-fill cu minmax corect pentru a evita '1fr' error in unele validatoare vechi */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}





/* --- MOBILE --- */
@media (max-width: 768px) {
    .main-header { flex-direction: column; padding: 15px; gap: 15px; }
    .right-buttons { width: 100%; justify-content: center; gap: 10px; }
    .right-buttons a { font-size: 0.7rem; padding: 8px 12px; }
    .galerie { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 15px; }
    .item img, .video-thumb { height: 180px; }
    #modal-img, #modal-video { max-height: 60vh; }
    .close-btn { top: -40px; right: 10px; }
}