/* public/assets/css/modules/services.css */

/* --- BENTO GRID LAYOUT (COMPACT BUT BOLD) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 22px;
    width: 100%;
    max-width: 100%;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    min-height: 220px;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px -8px rgba(15, 23, 42, 0.12);
    z-index: 2;
    border-color: rgba(0, 155, 58, 0.28);
}

/* --- Hero Green Card (Úschovna) --- */
.bento-card.hero-green {
    background: var(--fl-green-rich-gradient);
    color: white;
    border: none;
}
.bento-card.hero-green h3 { color: white; }
.bento-card.hero-green .btn-circle-arrow {
    background: rgba(255,255,255,0.25);
    color: white;
    transition: all 0.3s ease;
}
.bento-card.hero-green:hover .btn-circle-arrow {
    background: white;
    color: var(--fl-green-primary);
    transform: scale(1.1);
}

/* --- Accent Red Card (Ztráty) --- */
.bento-card.accent-red {
    background: #fff;
    border-color: #f3e4e4;
}
.bento-card.accent-red:hover { border-color: rgba(220, 53, 69, 0.3); }

/* =========================================
   --- Petrol Card (Split Layout & Slideshow) ---
   ========================================= */
.bento-card.petrol-card {
    /* Tmavé pozadí pro levou (textovou) část */
    background: linear-gradient(145deg, #2b2b2b 0%, #1a1a1a 100%);
    border: none;
    color: #ffffff !important; /* Vynucení bílé pro základní text */
    position: relative;
    cursor: pointer;
}

/* VYNUCENÍ BÍLÉ BARVY PRO VŠECHNY TEXTOVÉ PRVKY UVNITŘ */
.bento-card.petrol-card h3,
.bento-card.petrol-card .bento-title,
.bento-card.petrol-card p,
.bento-card.petrol-card span,
.bento-card.petrol-card i,
.bento-card.petrol-card div {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Jemný stín pro lepší čitelnost */
}

/* Kontejner pro slideshow - pouze pravá polovina */
.petrol-slideshow {
    position: absolute;
    top: 0;
    left: 50%; /* Posun na pravou půlku */
    width: 50%; /* Šířka jen půlka karty */
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

/* Jemný tmavý filtr jen přes fotky */
.petrol-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    background: rgba(0,0,0,0.2); 
    z-index: 1;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    pointer-events: none;
}

/* Omezení šířky textového bloku, aby zůstal vlevo */
.bento-card.petrol-card .flex-grow-1 {
    max-width: 55%;
    position: relative;
    z-index: 2;
}

/* Ikona pumpy */
.bento-card.petrol-card .me-4 {
    position: relative;
    z-index: 2;
}

/* --- Animace Slideshow (7 fotek) --- */
.petrol-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0;
    /* Celkový čas: 7 fotek x 5 sekund = 35s */
    animation: petrolFade 35s infinite;
}

/* Časování pro 7 obrázků (posun o 5s) */
.petrol-slide:nth-child(1) { animation-delay: 0s; }
.petrol-slide:nth-child(2) { animation-delay: 5s; }
.petrol-slide:nth-child(3) { animation-delay: 10s; }
.petrol-slide:nth-child(4) { animation-delay: 15s; }
.petrol-slide:nth-child(5) { animation-delay: 20s; }
.petrol-slide:nth-child(6) { animation-delay: 25s; }
.petrol-slide:nth-child(7) { animation-delay: 30s; }

/* Klíčové snímky pro 7 fotek (1/7 cyklu) */
@keyframes petrolFade {
    0% { opacity: 0; transform: scale(1); }
    2.3% { opacity: 1; }
    11.4% { opacity: 1; }
    14.29% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

/* ========================================= */

/* --- Standard Cards --- */
.bento-card.standard {
    background: #f8fafc;
}
.bento-card.standard:hover { background: #fff; border-color: var(--fl-green-primary); }

/* --- Icons & Typos --- */
.bento-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 7rem;
    opacity: 0.05;
    transform: rotate(-10deg);
    transition: all 0.5s ease;
    pointer-events: none;
}
.bento-card:hover .bento-bg-icon { transform: rotate(0deg) scale(1.15); opacity: 0.08; }

.bento-icon-circle {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bento-icon-small {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

/* Backgrounds for small icons */
.bg-primary-soft { background: rgba(13, 110, 253, 0.1); }
.bg-info-soft { background: rgba(13, 202, 240, 0.1); }
.bg-warning-soft { background: rgba(255, 193, 7, 0.1); }
.bg-dark-soft { background: rgba(33, 37, 41, 0.1); }
.bg-green-soft { background: rgba(0, 155, 58, 0.1); }

.bento-title {
    font-weight: 800;
    line-height: 1.2;
}

.bento-title-small {
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--fl-dark-deep);
}

.bento-text-mini {
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0;
}

.btn-circle-arrow {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.bento-card:hover .btn-circle-arrow { background: var(--fl-green-primary); color: white; }

/* Grid Spanning */
.grid-col-2 { grid-column: span 2; }
.grid-row-2 { grid-row: span 2; }

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .bento-card { min-height: 220px; }
    .grid-row-2 { grid-row: span 1; min-height: 250px; }
}

@media (max-width: 991px) {
    .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-span-tablet { grid-column: span 2; }
    
    /* Na tabletu a mobilu zrušíme rozdělení 50/50 u pumpy */
    .petrol-slideshow, .petrol-overlay {
        left: 0;
        width: 100%;
        border-radius: 0;
    }
    .bento-card.petrol-card .flex-grow-1 {
        max-width: 100%;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
    }
     .petrol-overlay {
        background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    }
}

@media (max-width: 576px) {
    .bento-grid { display: flex; flex-direction: column; gap: 20px; }
    .bento-card { min-height: auto; padding: 25px; }
}

/* --- MODAL STYLES --- */
.modal-head-icon {
    width: 50px; height: 50px;
    background: var(--fl-green-rich-gradient);
    color: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 155, 58, 0.2);
    font-size: 1.5rem;
}

.luggage-method-card {
    background: white; border-radius: 16px; padding: 1.5rem;
    border: 1px solid #f1f5f9; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: relative; overflow: hidden; height: 100%; transition: all 0.3s ease;
}
.luggage-method-card:hover {
    transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: rgba(0, 155, 58, 0.2);
}

.document-card {
    display: flex; align-items: center; padding: 12px;
    background-color: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.document-card:hover {
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--fl-green-primary);
}