

/************************************************************************/
/* FROM CSS FILE: General.css */
/************************************************************************/


body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff; /* Default background to white */
    color: #000000; /* Default text to black */
}

:root {
  /* --primary-color : #f00024;  */
  --primary-color : #dc2626; 
}

*{
    box-sizing: border-box;
}

article p{
    line-height: 1.6;
    margin: 0.5rem 0;
}

article img{
    /* width: 100%; */
    margin: 0 auto;
} 

.logo img{
    max-width: 250px;
    width: 90%;
}
.font-condensed {
    font-family: 'Roboto Condensed', sans-serif;
}
.bg-hero {
    background-size: cover;
    background-position: center;
}

.mobile-menu-bg {
    background-color: #000000;
}

.mobile-submenu { 
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out; 
    overflow: hidden; 
    max-height: 0;
    opacity: 0;
}
.mobile-submenu.open { 
    max-height: 500px; /* Valoare suficient de mare */
    opacity: 1;
    text-align: center;
}
.mobile-dropdown-link .feather-chevron-down { 
    transition: transform 0.3s ease; 
}
.mobile-dropdown-link.open .feather-chevron-down { 
    transform: rotate(180deg); 
}
.show-card:hover .show-image {
    transform: scale(1.05);
}
.show-image {
    transition: transform 0.3s ease-in-out;
}
.btn-buy {
    transition: all 0.3s ease;
}
.btn-buy:hover {
    background-color: #ffffff;
    color: #e53e3e;
    border-color: #ffffff;
}
.btn-buy-light {
    transition: all 0.3s ease;
}
.btn-buy-light:hover {
    background-color: #000000;
    color: #ffffff;
}
/* Hide scrollbar for carousel */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Calendar Styles */
.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
}

.calendar-day.selected.has-event::after{
    background-color: var(--primary-color); /* red-600 */
}

.calendar-day.selected {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
    border-radius: 50%;
}
.calendar-day.today {
    border: 2px solid #ffffff;
    border-radius: 50%;
}



 .show-card:hover .show-image {
    transform: scale(1.05);
}
.show-image {
    transition: transform 0.3s ease-in-out;
}
.filter-btn.active {
    background-color: var(--primary-color); /* red-600 */
    color: #ffffff;
    border-color: var(--primary-color);
}

.gallery-modal {
    transition: opacity 0.3s ease;
}
.modal-image {
    transition: transform 0.3s ease;
    transform: scale(0.95);
}
.gallery-modal.open .modal-image {
    transform: scale(1);
}
body.no-scroll {
    overflow: hidden;
}

.show-card:hover .show-image {
    transform: scale(1.05);
}
.show-image {
    transition: transform 0.3s ease-in-out;
}
.gallery-item {
    position: relative;
}
.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none; /* Allows click to go to the parent */
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.gallery-item:hover .play-icon {
    opacity: 1;
}

 @keyframes ken-burns {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(-2%, 1%);
    }
}

/* Clasa pentru slide-ul complet (container) */
.hero-slide {
    position: absolute;
    inset: 0; /* Ocupă tot spațiul părintelui (secțiunea) */
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Tranziția FADE */
}

/* Clasa 'active' face slide-ul curent vizibil */
.hero-slide.active {
    opacity: 1;
}

/* Stiluri pentru imaginea/videoclipul DIN INTERIORUL unui slide */
.hero-slide .slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asigură acoperirea completă a containerului */
    z-index: 1; /* Stă în spate */
    /* Aplică animația Ken Burns. Durează 15s, alternează direcția și rulează la infinit */
    animation: ken-burns 15s alternate infinite ease-in-out;
}

/* Stiluri pentru containerul de conținut (gradient + text) DIN INTERIORUL unui slide */
.hero-slide .slide-content-wrapper {
    position: relative; /* Trebuie să fie relativ pentru ca z-index să funcționeze */
    z-index: 2; /* Stă deasupra elementului media */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end; /* Aliniază conținutul la bază */
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3), rgba(0,0,0,0)); /* Gradientul */
}

/* Animație subtilă pentru apariția textului */
.hero-slide .slide-text-block {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    transform: translateY(20px);
    opacity: 0;
}

/* Când slide-ul devine activ, textul apare cu efect */
.hero-slide.active .slide-text-block {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.5s; /* O mică întârziere pentru un efect mai plăcut */
}

/* .bg-red-600 {
    background-color: var(240, 0, 36 / var(--tw-bg-opacity, 1)); /* red-600 */
/* }  */

.AddResurseComponent .preview-crop-container {
    position: relative;
    display: none; /* Initial ascuns */
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid #ccc;
}

.AddResurseComponent .preview-crop-container img {
    max-width: 100%;
    display: block;
}

.AddResurseComponent .crop-box {
    border: 2px dashed #ffffff;
    position: absolute;
    box-sizing: border-box;
    cursor: move;
    /* Acest boxShadow creeaza efectul de masca intunecata in afara chenarului */
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.AddResurseComponent .resize-handle {
    width: 10px;
    height: 10px;
    background: #fff;
    position: absolute;
    right: -5px;
    bottom: -5px;
    cursor: se-resize;
    border: 1px solid #333;
}

.accessibility-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
}
.accessibility-button {
    background-color: #c53030; /* red-700 */
    color: white;
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s ease-in-out;
}
    .accessibility-button:hover {
    transform: scale(1.1) translateX(-2px);
}
.accessibility-menu {
    position: absolute;
    top: 50%;
    right: 60px; /* La stanga butonului */
    transform: translateY(-50%);
    width: 280px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
    .accessibility-menu.open {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}
.accessibility-menu h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c; /* gray-900 */
    border-bottom: 1px solid #e2e8f0; /* gray-200 */
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.access-option-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.access-option-group button {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e0; /* gray-300 */
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.access-option-group button:hover {
    background-color: #f7fafc; /* gray-100 */
}
.access-option-group button.active {
    background-color: #c53030; /* red-700 */
    color: white;
    border-color: #c53030;
}

.pagination-btn {
    transition: all 0.2s ease-in-out;
}
.pagination-btn.active {
    background-color: #c53030; /* red-700 */
    color: white;
    border-color: #c53030;
    transform: scale(1.1);
}
.pagination-btn:hover:not(.active) {
    background-color: #f3f4f6; /* gray-100 */
    border-color: #9ca3af; /* gray-400 */
}
/* Stil pentru starea de încărcare */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c53030;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.actor-banner-frame {
    position: absolute; /* Ocupa tot spatiul parintelui (.bg-hero) */
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Asta face "crop-ul" vizual */
}

.actor-banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* Aplicam transformarea pentru CROP AICI */
    transform: scale(var(--scale-factor, 1)) translate(var(--x-pos, 0%), var(--y-pos, 0%));
}

/* 2. Pentru Poza de Profil din sidebar */
.profile-image-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4; /* Pastram aspect ratio-ul tau */
    background-color: #e0e0e0;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--scale-factor, 1)) translate(var(--x-pos, 0%), var(--y-pos, 0%));
}

/* 3. Pentru itemii din Galerie */
.gallery-item-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* O facem patrata, sau poti alege altceva (ex: 4/3) */
    background-color: #e0e0e0;
    border-radius: 0.125rem; /* rounded-sm */
}
.gallery-item-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--scale-factor, 1)) translate(var(--x-pos, 0%), var(--y-pos, 0%));
    transition: opacity 0.2s ease-in-out;
}
.gallery-item:hover .gallery-item-media {
    opacity: 0.8; /* Efectul tau de hover existent */
}


.slide-crop-frame {
    position: absolute;
    inset: 0; /* Ocupa tot spatiul parintelui (.hero-slide) */
    width: 100%;
    height: 100%;
    overflow: hidden; /* Asta face "crop-ul" vizual */
    
    /* 
     * APLICAM TRANSFORMARILE AICI!
     * Variabilele vor fi setate de JavaScript.
     */
    transform: scale(var(--scale-factor, 1)) translate(var(--x-pos, 0%), var(--y-pos, 0%));
}


.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background-color: #1a1a1a;
}

/* 2. NOU: Un wrapper care aplica DOAR crop-ul initial (pozitie si zoom) */
.poster-transform-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Aplicam transformarea pe baza datelor din DB AICI */
    transform: scale(var(--scale-factor, 1)) translate(var(--x-pos, 0%), var(--y-pos, 0%));
    
    /* O tranzitie si aici, pentru a asigura fluiditate in orice situatie */
    transition: transform 0.3s ease-in-out;
}

/* 3. Imaginea din interior. Nu mai are transform initial. */
.poster-image {
    display: block; /* Asigura ca nu are spatii extra */
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* Tranzitia pentru animatia de hover se aplica direct pe imagine */
    transition: transform 0.3s ease-in-out;
}

/* 4. La hover pe card, aplicam o transformare SIMPLA doar pe imagine */
.show-card:hover .poster-image {
    transform: scale(1.05); /* O singura functie, curata si usor de animat */
}

.show-card .overflow-hidden {
    position: relative; /* Necesar pentru a pozitiona wrapper-ul inauntru */
}

/* 
 * 2. Wrapper-ul care aplica DOAR crop-ul initial (pozitie si zoom).
 * Acest div va sta intre container si imagine.
 */
.crop-wrapper {
    position: absolute;
    inset: 0; /* Ocupa tot spatiul (100% width/height, top/left 0) */
    
    /* Aplica transformarea pe baza datelor din DB AICI */
    transform: scale(var(--scale-factor, 1)) translate(var(--x-pos, 0%), var(--y-pos, 0%));
}

/* 
 * 3. Ne asiguram ca imaginea din interior (.show-image) umple wrapper-ul.
 * CSS-ul tau existent cu w-full, h-full, object-cover face deja asta, 
 * deci acest bloc este mai mult o masura de siguranta.
 */
.crop-wrapper .show-image {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0; /* Ocupă tot spațiul părintelui (secțiunea) */
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Tranziția FADE */
    background-color: #000; /* Fundal negru pentru a evita un ecran alb la încărcare */
}

/* Clasa 'active' face slide-ul curent vizibil */
.hero-slide.active {
    opacity: 1;
}

/* Stiluri pentru imaginea/videoclipul DIN INTERIORUL unui slide */
.slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* 
     * AICI ESTE CHEIA: `object-fit: cover` scalează media pentru a umple
     * containerul fără a o deforma. Decupajul se face automat și egal.
    */
    object-fit: cover; 
    z-index: 1; /* Stă în spatele textului */
    /* Readăugăm animația Ken Burns originală */
    animation: ken-burns-simple 15s alternate infinite ease-in-out;
}

/* Oprim animația pentru elementele video */
.slide-media[is-video="true"] {
    animation: none;
}


/* Animația Ken Burns simplificată care funcționează perfect cu object-fit */
@keyframes ken-burns-simple {
    from {
        transform: scale(1.05) translate(0, 0);
    }
    to {
        transform: scale(1.2) translate(-2%, 1%);
    }
}

/* Stiluri pentru containerul de conținut (gradient + text) */
.hero-slide .slide-content-wrapper {
    position: relative; /* Trebuie să fie relativ pentru ca z-index să funcționeze */
    z-index: 2; /* Stă deasupra elementului media */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end; /* Aliniază conținutul la bază */
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3), rgba(0,0,0,0)); /* Gradientul */
}

/* Stiluri pentru modurile de accesibilitate */
html.high-contrast { background-color: #000 !important; color: #fff !important; }
html.high-contrast body, html.high-contrast div, html.high-contrast section, html.high-contrast main, html.high-contrast header, html.high-contrast footer { background-color: #000 !important; color: #fff !important; }
html.high-contrast a { color: #ffff00 !important; }
html.high-contrast h1, html.high-contrast h2, html.high-contrast h3, html.high-contrast button { color: #fff !important; }
html.grayscale { filter: grayscale(100%); }
html.links-highlight a { text-decoration: underline !important; background-color: yellow; color: black !important; }
html.font-readable { font-family: 'Verdana', sans-serif !important; }
html.font-readable h1, html.font-readable h2, html.font-readable h3 { font-family: 'Verdana', sans-serif !important; }

/* Timeline Styles */
.timeline-dot {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .timeline{
        left: 30px !important;
    }
    .timeline-dot {
        left: 30px !important;
        transform: translateX(-50%) !important;
    }
    .left-timeline, .right-timeline {
        flex-direction: row !important;
        justify-content: flex-start !important;
    }
    .left-timeline > .order-1:first-child, 
    .right-timeline > .order-1:first-child {
        display: none !important;
    }
    .left-timeline > .order-1:last-child,
    .right-timeline > .order-1:last-child {
        width: 100% !important;
        margin-left: 30px !important;
    }
    .left-timeline > .z-20,
    .right-timeline > .z-20 {
        position: absolute !important;
        left: 30px !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 30 !important;
    }
}
