/* ===============================
   STYLE GLOBAL — MovieApp (Desktop Edition)
   =============================== */

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    background: url('images/background/cinema_wall.jpg') center center / cover no-repeat fixed;
    color: white;
    overflow: hidden;
}

/* Container general */
.container, .login-box {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    padding: 60px 80px;
    box-shadow: 0 0 40px #00ffff;
    text-align: center;
    animation: fadeIn 0.8s ease;
    max-width: 520px;
    min-width: 420px;
}

/* Titluri */
h1 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 2rem;
    letter-spacing: 1px;
}

h2 {
    color: #ccc;
    font-weight: normal;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

/* Input-uri */
input[type="text"], input[type="password"], input[type="date"], input[type="range"] {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    text-align: center;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 15px;
}

input[type="range"] {
    width: 90%;
    accent-color: #00ffff;
}

/* Butoane */
button {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 2px solid #00ffff;
    border-radius: 12px;
    background: transparent;
    color: #00ffff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    letter-spacing: 0.5px;
}

button:hover {
    background: #00ffff;
    color: #000;
    transform: scale(1.05);
}

/* Logout + Delete */
.logout {
    background: #ff4b4b;
    border: none;
    color: white;
}
.logout:hover {
    background: #ff0000;
}

/* Remember me */
.remember {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ccc;
    font-size: 15px;
    margin-top: 10px;
}
.remember input {
    transform: scale(1.3);
    accent-color: #00ffff;
}

/* Fade effect */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Eroare */
.error {
    color: #ff4b4b;
    font-weight: bold;
    margin-bottom: 10px;
    background: rgba(255, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
}

/* ===============================
   SECȚIUNE — Căutare filme TMDB
   =============================== */
.search-container {
    width: 90%;
    max-width: 1000px;
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.85);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 25px #00ffff;
    text-align: center;
    backdrop-filter: blur(6px);
}

.search-container input[type="text"] {
    width: 70%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #00ffff;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 15px;
    outline: none;
}

.search-container button {
    width: auto;
    padding: 10px 20px;
    margin-left: 10px;
}

/* ===== GRID ===== */
.grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.movie-card {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.movie-card:hover {
    background: rgba(0,255,255,0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ffff;
}

.movie-card img {
    width: 100%;
    border-radius: 8px;
    height: 240px;
    object-fit: cover;
}
.movie-title { margin-top: 8px; color: #00ffff; font-weight: bold; font-size: 14px; }
.movie-year { font-size: 12px; color: #ccc; }

/* ===== POPUP ===== */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
}
.popup {
    background: rgba(10,10,10,0.9);
    border-radius: 15px;
    padding: 20px;
    width: 370px;
    text-align: center;
    box-shadow: 0 0 20px #00ffff;
    animation: zoomIn 0.3s ease-out;
}
@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.popup h3 { color: #00ffff; }
.range-value {
    margin-top: 5px;
    color: #00ffff;
    font-weight: bold;
}

/* ===== MINI PREVIEW ===== */
.mini-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 2000;
    display: none;
}
.mini-preview.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.preview-card {
    display: flex;
    gap: 15px;
    background: rgba(0,0,0,0.85);
    border: 1px solid #00ffff;
    box-shadow: 0 0 20px #00ffff;
    border-radius: 15px;
    padding: 15px;
    align-items: center;
}
.preview-card img {
    width: 90px;
    border-radius: 8px;
}
.preview-info h3 {
    margin: 0;
    color: #00ffff;
}
.preview-info p {
    margin: 3px 0;
    color: white;
    font-size: 13px;
}

/* ===== BUTON ÎNAPOI ===== */
.back-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(0,255,255,0.4);
    animation: glowPulse 2.2s infinite ease-in-out;
}
.back-btn:hover {
    background: #00ffff;
    color: black;
    transform: scale(1.08);
    box-shadow: 0 0 20px #00ffff;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding-top: 40px;
        overflow-y: auto;
    }
    .container, .login-box, .search-container {
        padding: 30px 25px;
        max-width: 90%;
    }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1rem; }
    button { font-size: 14px; }
}
