/*
 Theme Name:   Astra Child
 Template:     astra
 Version:      1.5.0
*/

/* --- SEKCJA HERO LAB --- */
.hero-lab-section {
    position: relative;
    width: 100%;
    height: 40dvh;
    min-height: 300px;
    overflow: hidden;
    background: #0b1628;
}
.hero-variant-large { height: 70dvh !important; }

#canvas_hero_lab {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 0;
}

.hero-lab-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, #0b1628 0%, #0b1628 30%, rgba(11, 22, 40, 0.88) 42%, rgba(11, 22, 40, 0.45) 58%, rgba(11, 22, 40, 0.08) 75%, transparent 90%);
    pointer-events: none;
}

.hero-lab-content {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; padding: 0 5vw;
}

.hero-lab-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: clamp(30px, 3.8vw, 54px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

/* --- STRUKTURA --- */
.main-content-wrapper { width: 100%; margin: 40px 0; }
.content-container {
    display: grid;
    grid-template-columns: minmax(150px, 20%) 1fr minmax(150px, 20%);
    gap: 30px;
    align-items: start;
}

.side-ad { position: sticky; top: 20px; background: #f9f9f9; display: flex; justify-content: center; min-height: 300px; }

/* --- KAFELKI (Tiles) --- */
.tiles-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2dvw; padding: 20px 0; }

.custom-tile-wrapper {
    position: relative;
    width: 25dvw !important;
    height: 14dvw !important;
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
}

.tile-img-container { position: relative; width: 100%; height: 100%; }
.tile-img-container img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.3s ease; }
.custom-tile-wrapper:hover img { transform: scale(1.05); }

/* --- NAKŁADKA KOLORU --- */
.tile-custom-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Pozwala klikać w link pod spodem */
}
.custom-tile-wrapper:hover .tile-custom-overlay { opacity: 0.8; }

.tile-title {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; text-align: center; color: #fff;
    font-size: 1.8dvw !important; font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    z-index: 2; pointer-events: none;
}

.tile-overlay-link { position: absolute; inset: 0; z-index: 3; }

/* --- KARUZELA V2 --- */
.hero-carousel-v2 {
    position: relative;
    width: 100%;
    margin: 40px 0;
    display: flex;
    align-items: center;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 15px 0;
}

.carousel-track .custom-tile-wrapper {
    flex: 0 0 25dvw !important;
    min-width: 300px !important;
}

/* STRZAŁKI */
.carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(11, 22, 40, 0.7); color: white; border: none;
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    font-size: 20px; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.carousel-nav:hover { background: #0b1628; }
.carousel-nav.prev { left: -25px; }
.carousel-nav.next { right: -25px; }

/* RWD */
@media (max-width: 1024px) {
    .content-container { grid-template-columns: 1fr; }
    .side-ad { display: none; }
    .custom-tile-wrapper, .carousel-track .custom-tile-wrapper { width: 90dvw !important; height: 50dvw !important; }
    .tile-title { font-size: 6dvw !important; }
    .carousel-nav { display: none; } /* Chowanie strzałek na mobile */
}