/* ========================================= */
/* BASE STYLES - MOBILE FIRST (Default for screens up to ~991px) */
/* Stilovi koji se primenjuju na SVE UREĐAJE dok se ne aktivira media query za desktop,
   ali će ovde biti default stanje za TOUCHSCREEN uređaje i manje tablete */
/* ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');

section {
    font-family: 'Roboto Condensed', sans-serif;
}

/* GENERAL / CONTAINER */
.container {
    margin: 0 auto;
    padding: 0;
}

/* HERO SECTION */
.see-all-hero {
    position: relative;
    min-height: 100svh;   
    display: flex;
    flex-direction: column;    
    justify-content: flex-end;
    align-items: center;  
    box-sizing: border-box;
    margin-top: 120px;
    background-color: #000;
    z-index: 1;
}

.see-all-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;    
}

.see-all-hero-text {   
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    padding: 45px 30px 56px 30px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: left;
}

.see-all-hero-subtitle {
    color: #00D4E9;
    font-size: 21px;
    line-height: 1;
    font-weight: 700;
}

.see-all-hero-title {
    margin: 10px 0;
    color: #fff;
    font-weight: 700;
    line-height: 1.05;
}
.desktop-only {
    display: none;
}
.see-all-hero-description {
    color: #fff;
    margin-bottom: 0;
    font-size: 18px;
    margin-top: 30px;
}

.see-all-hero-image-right {
    order: -1;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.see-all-hero-image-right img {
    max-width: 150px;
    height: auto;
}

/* WARRANTY SECTION */
#warranty {
    position: relative;
    z-index: 2;
    -webkit-transform: translate3d(0, 0, 0);
}

.see-all-warranty-mobile-version {
    display: block;   
    background: linear-gradient(to top, #20292f 0%, #01050a 100%);
    padding: 30px 15px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.see-all-warranty-desktop-version {
    display: none;
}

.see-all-warranty-content-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 380px;
}

.warranty-visuals-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 150px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.warranty-klima-img-mob {
    width: 90%;
    height: auto;
    display: block;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.warranty-badge-img-mob {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 11;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.see-all-warranty-holder-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    margin-top: 0;
    background-color: transparent;
    border-radius: 0;
    color: #fff;
}

.see-all-warranty-text-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.warranty-subtitle-mobile {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

.warranty-title-mobile {
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 700;
    color: #fff;
}

/* LIFESTYLE SECTION */
.see-all-lifestyle {
    position: relative;
    height: 517px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-image: url("../assets/img/see-all/living-room-mob.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index:5;
}
.see-all-products {
    z-index: 3;
}
.see-all-selector {
    z-index: 4;
}

/* === SAFARI & IPHONE OPTIMIZATIONS === */

/* Global Safari/iOS fixes for fixed backgrounds and hardware acceleration */
/* === GENERALNI MODERN CSS FIX ZA SVE PREGLEDAČE === */

/* Pseudo-element pozadina za sve moderne pregledače - bolje performanse od background-attachment: fixed */
.see-all-hero {
    background-attachment: scroll !important; /* Ukloni fixed za sve pregledače */
    background-image: none !important; /* Ukloni originalnu sliku */
    position: relative; /* Bitno za z-index i kontekst pseudo-elementa */
    overflow: hidden; /* Sprečava curenje sadržaja */
}

/* Kreiramo fiksirani pseudo-element koji će služiti kao pozadina */
.see-all-hero::before {
    content: "";
    position: fixed; /* KLJUČNO: Pozadina je fiksirana u viewportu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../assets/img/see-all/katalog-strana-baner-mob.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    /* background-position: left top; */
    z-index: -1; /* Mora biti iza sadržaja .section-1-inverter */
    -webkit-transform: translateZ(0); /* Hardverska akceleracija za glatkoću */
    transform: translateZ(0);
    will-change: transform;
}

/* Safari/iOS specifični fix - samo za dodatne optimizacije */
@supports (-webkit-touch-callout: none) {
    /* Fix za backdrop-filter na Safariju/iOS-u */
    .see-all-hero-text {
        -webkit-backdrop-filter: blur(12px); /* Ponovo definisanje sa prefiksom */
        backdrop-filter: blur(12px);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }    
}

/* iPhone specific fixes - iOS Safari only (detekcija dodirnog ekrana) */
@supports (-webkit-touch-callout: none) and (pointer: coarse) {
    /* Poboljšanje skrolovanja unutar elemenata za touch uređaje */
    body, html {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix za stabilnu visinu na iOS-u - koristi lvh umesto svh */
    .see-all-hero {
        min-height: 100lvh !important; /* Large viewport height - ignorise UI promene */
        height: 100lvh !important; /* Fiksira visinu */
    }
}
@media (max-width: 320px) { 
    .see-all-hero-title {
        font-size:42px;
    }

}

@media (min-width: 576px) {    
    .see-all-hero-image-right img {
        max-width: 180px;
    }

    /* WARRANTY SECTION */
    .warranty-subtitle-mobile {
        font-size: 1.5rem;
    }
    .warranty-visuals-wrapper {
        max-width: 400px;
        height: 200px;
    }
    .warranty-badge-img-mob {
        width: 100px;
        height: 100px;
    }

    /* GENERAL MEDIA QUERY FOR HERO/WARRANTY SECTIONS */
    /* This section was previously part of products, but applies to other sections */
    .see-all-hero-content {
        /* max-width: 100%; */
    }
    .see-all-hero-text {
        height: 400px; /* Ensure this is still valid without products */
    }
}

@media (min-width: 768px) {
    .see-all-hero {
        justify-content: center;
    }
    .see-all-hero-content {
        display: block;       
    }   
    .see-all-hero::before {
        background-image: url("../assets/img/see-all/klima-hero.jpg");        
        background-position-x: center;
    }
    .see-all-hero-text {
        max-width: 600px;
        padding: 20px 20px;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin-top: 0;
        position: fixed;
        top:50%;
        transform: translateY(-50%);
    }   
    .see-all-hero-image-right img {
        max-width: 220px;
    }
    .warranty-subtitle-mobile {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }
    .warranty-visuals-wrapper {
        max-width: 500px;
        height: 250px;
    }
    .warranty-badge-img-mob { 
        width: 120px;
        height: 120px;
    }
    .see-all-lifestyle {
        height: 100svh;
        background-image: url("../assets/img/see-all/living-room.jpg");
    }
}

@media (min-width: 992px) {
     .see-all-hero-title {
        font-size: 64px;
     }
     .see-all-hero-subtitle {
        font-size: 29px;
    }
     .see-all-hero::before {
        background-image: url("../assets/img/see-all/klima-hero.jpg");       
    }
}

/* Desktop breakpoint za WARRANTY SECTION (od 1024px) */
@media (min-width: 1024px) {
    .see-all-warranty-mobile-version {
        display: none;
    }

    .see-all-warranty-desktop-version {
        display: block;
        background-color: #fff;
        padding: 40px 30px;
        text-align: center;
    }

    
    .see-all-warranty-content-desktop {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }

    .see-all-warranty-image-desktop {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
    }

    .see-all-warranty-image-desktop img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 20px;
    }

    .see-all-warranty-holder-desktop {
        display: flex;
        flex-direction: row;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 0 50px;
        width: 100%;
        background-color: transparent;     
        justify-content: space-between;
    }

    .see-all-warranty-text-desktop {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .see-all-image-right-desktop {
        position: relative;
        top: auto;
        justify-content: center;
        display: flex;
        margin-top: 0;
        max-width: 220px;
    }

    .see-all-image-right-desktop img {
        max-width: 100%;
        height: auto;
    }

    .warranty-title-desktop {
        font-size: 3rem;
        line-height: 1;
        font-weight: 700;        
    }

    .warranty-subtitle-desktop {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        color: #fff;
        letter-spacing: 1px; 
        font-weight: 500;
    }
    .mobile-only {
        display: none;
    }
    .desktop-only {
        display: block;
    }
}

/* Large devices (desktops, 1200px and up) - SADA OVO JE GLAVNI DESKTOP BREAKPOINT */
@media (min-width: 1200px) {
    /* HERO SECTION */
    .see-all-hero-content {
        flex-direction: row;        
        text-align: left;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        align-items: center;
        width: 100%;
        /* max-width: 1120px; */
    } 

    .see-all-hero-subtitle {
        font-size: 29px;
    }

    .see-all-hero-image-right {
        order: unset;
        margin-bottom: 0;
        justify-content: flex-end;
        max-width: 350px;
    }

    .see-all-hero-image-right img {
        max-width: 100%;
    }
    
    .warranty-title-desktop {        
        margin-bottom: 0;
    }
    .warranty-subtitle-desktop {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }    
}


@media (min-width: 1400px) {
    /* HERO SECTION*/
    .see-all-hero-content {      
    }
    .see-all-hero-image-right img {
        max-width: 400px;
    }    

    /* WARRANTY SECTION */
    .see-all-image-right-desktop img {
        max-width: 350px;
    }
}

@media (min-width: 1920px) {
    .see-all-hero-title {
        font-size: 72px;
    }
}
@media (min-height: 500px) { 
    .see-all-hero {
        margin-top: 350px;
    }
}
@media (min-height: 600px) { 
    .see-all-hero {
        margin-top: 280px;
    }
}
@media (min-height: 700px) { 
    .see-all-hero {
        margin-top: 200px;
    }
}
@media (min-height: 800px) { 
    .see-all-hero {
        margin-top: 120px;
    }
}