/* === RESET BROWSER DEFAULTS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BODY GENERAL === */
body, html {
    font-family: Arial, sans-serif;
    color: white;
    background-color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Permite scroll vertical */
html {
    overflow-y: auto;
}

/* === FUNDAL PANNELLUM 360 === */
#pano {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* === LOGO === */
.logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.logo img {
    width: 250px;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

/* === BUTON ROTIRE === */
#toggleRotation {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 6px 10px;
    background: transparent;
    color: white;
    border: 1px solid #ff8c42;
    border-radius: 6px;
    cursor: pointer;
}
#toggleRotation:hover {
    background: rgba(255,255,255,0.2);
}

/* === CONȚINUT CENTRAL === */
.content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    text-align: center;
    margin-top: 220px;
    padding: 20px;
}

h1, h2, p {
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
    margin-bottom: 16px;
}

/* === BUTOANE FV360 === */
.btn {
    background: transparent;
    color: #ff8c42;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid #ff8c42;
    border-radius: 12px;
    cursor: pointer;
    margin: 10px auto;
    display: inline-block;
    transition: 0.3s ease;
    text-decoration: none;
}
.btn:hover {
    background: #ff8c42;
    color: white;
    transform: scale(1.05);
}

/* === BUTON ÎNAPOI CENTRAT === */
.back-btn {
    display: block;
    margin: 40px auto;
    position: relative;
    z-index: 3;
    background-color: #ff8c42;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.back-btn:hover {
    background-color: #e67300;
}

/* === GALERIE MINIATURI FOTO === */
.gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 40px;
    z-index: 3;
}
.gallery-wrapper > p {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}
.mini-container {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.mini-container img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.mini-container:hover {
    transform: scale(1.05);
}

/* === VIDEO GALLERY MINIATURI === */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 40px;
    z-index: 3;
}
.video-thumb {
    width: 150px;
    height: 150px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
    position: relative;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-thumb:hover {
    transform: scale(1.05);
}

/* Icon PLAY peste video - AICI S-AU APLICAT MODIFICĂRILE */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;  /* Dimensiune container pentru DESKTOP */
    height: 20px; /* Dimensiune container pentru DESKTOP */
    transform: translate(-50%, -50%);
    opacity: 0.8;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
    z-index: 2;
}

/* 🟢 SOLUȚIA PENTRU SVG: FORȚEAZĂ GRAFICA INTERNĂ SĂ UMPLE CONTAINERUL MIC */
.play-icon svg {
    width: 100%; 
    height: 100%;
}

/* === POP-UP VIDEO === */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;  /* Lățime completă */
    height: 100vh; /* Înălțime completă */
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.video-content {
    position: relative;
    width: 90%;  /* 90% din lățimea ecranului */
    max-width: 960px;
    height: 90%;  /* 90% din înălțimea ecranului */
    aspect-ratio: 16 / 9;  /* Menținem raportul corect 16:9 */
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Asigură că video-ul se potrivește corect în ecran */
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: black;
}

/* === X - Închidere pop-up video === */
.close-video {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 32px;
    color: white;
    background: #ff8c42;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .btn, .back-btn {
        width: 80%;
        font-size: 14px;
    }
    .mini-container img,
    .logo img {
        width: 100%;
    }
    .video-thumb {
        width: calc(50% - 10px);
    }
    /* Păstrăm dimensiunea de 24px pentru mobil (atingere mai ușoară) */
    .play-icon {
        width: 24px;
        height: 24px;
    }
    .video-content {
        width: 95%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
}