/* public/assets/css/modules/transport.css */

:root {
    /* Oficiální barvy PID/DPP */
    --metro-red: #CF003D;    /* Linka C */
    --metro-yellow: #FECB00; /* Linka B */
    --tram-red: #BA0C2F;     /* Tramvaje */
    --bus-blue: #007bff;     /* Autobusy */
    --taxi-yellow: #FFD100;  /* Taxi */
}

/* --- LAYOUT GRID (Dashboard Style) --- */
.transport-bento {
    display: grid;
    /* 3 sloupce: Metro (2) + Pravý sloupec (1) */
    grid-template-columns: 2fr 1fr;
    /* Řádky: Metro (520px) vs Pravé karty (250px + 250px + gap) */
    grid-template-rows: 520px 140px; 
    gap: 24px;
}

/* --- KARTY OBECNĚ --- */
.trans-card {
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.trans-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.icon-square {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.trans-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--fl-dark-deep);
}

.trans-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- 1. METRO CARD (Left - Tall) --- */
.metro-card {
    background: linear-gradient(145deg, #12161f 0%, #080a0e 100%);
    border: 1px solid rgba(255,255,255,0.08);
    /* Umístění v gridu: 1. sloupec, přes oba řádky */
    grid-column: 1 / 2;
    grid-row: 1 / 2; 
    justify-content: flex-start;
}

.trans-bg-icon {
    position: absolute;
    right: -30px;
    bottom: -50px;
    font-size: 20rem;
    color: white;
    opacity: 0.02;
    pointer-events: none;
    transform: rotate(-10deg);
    transition: 0.5s ease;
}
.metro-card:hover .trans-bg-icon { transform: rotate(0deg) scale(1.1); opacity: 0.04; }

.metro-lines-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0; 
    flex-grow: 1;
    justify-content: center;
}

.metro-symbol {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.bg-metro-c { background-color: var(--metro-red); }
.bg-metro-b { background-color: var(--metro-yellow); color: #000; }
.text-metro-c { color: var(--metro-red); }
.text-metro-y { color: var(--metro-yellow); }

.line-bar {
    height: 8px;
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
    opacity: 1;
}

.metro-stops-detail { margin-top: 8px; opacity: 1; }

/* --- 2. BUS CARD (Top Right) --- */
.bus-card {
    grid-column: 2 / 3; 
    grid-row: 1 / 2;
    /* Hack: Aby byly dvě karty v pravém sloupci, musíme si pomoci. 
       Grid-row 1/2 je vysoký 520px. 
       Rozdělíme ho uvnitř gridu? Ne, to je komplikované.
       
       MĚNÍME GRID STRUKTURU V CSS NÍŽE!
    */
}

/* OPRAVENÁ STRUKTURA GRIDU */
.transport-bento {
    grid-template-columns: 2fr 1fr;
    /* 1. řádek (Metro vs Bus), 2. řádek (Metro vs Tram), 3. řádek (Parking) */
    grid-template-rows: 276px 276px auto;
    gap: 24px;
}

/* Metro přes první dva řádky vlevo */
.metro-card {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Autobus vpravo nahoře */
.bus-card {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* Tramvaj vpravo dole (pod busem) */
.tram-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Parking dole přes celou šířku */
.parking-card {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    background: #fff;
    padding: 24px 32px;
}

/* --- BADGES --- */
.bg-tram-soft { background: rgba(186, 12, 47, 0.08); }
.text-tram { color: var(--tram-red); }
.bg-bus-soft { background: rgba(0, 123, 255, 0.08); }
.text-bus { color: var(--bus-blue); }

.tram-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tram-badge {
    width: 38px; height: 38px;
    background: white;
    border: 2px solid #fee2e2;
    color: var(--tram-red);
    font-weight: 800;
    font-family: var(--font-tech);
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bus-badge {
    border-color: #dbeafe;
    color: var(--bus-blue);
}

.trans-card:hover .tram-badge { transform: translateY(-2px); }

/* --- 4. PARKING + TAXI COLORS --- */
.bg-success-soft { background: rgba(0, 155, 58, 0.1); }
.border-success-soft { border-color: rgba(0, 155, 58, 0.2) !important; }
.bg-warning-soft { background: rgba(255, 209, 0, 0.15); }
.text-warning { color: #d9a406 !important; }

/* --- GPS PILL --- */
.gps-pill {
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-family: var(--font-tech);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* --- UTILS --- */
.backdrop-blur { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.hover-green:hover { color: var(--brand-green) !important; }

.metro-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 22px 26px;
    background: linear-gradient(115deg, #f0faf4, #ffffff 75%);
    border: 1px solid #d5eadc;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(26, 88, 48, 0.05);
}

.metro-notice-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #009b3a;
    color: #ffffff;
    font-size: 1.7rem;
    box-shadow: 0 4px 12px rgba(0, 155, 58, 0.16);
}

.metro-notice-exit {
    position: absolute;
    bottom: -5px;
    right: -6px;
    padding: 3px 6px;
    border: 2px solid #f0faf4;
    border-radius: 7px;
    background: #173f2b;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
}

.metro-notice-title {
    margin: 0 0 5px;
    color: #25352d;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.metro-notice-message {
    margin: 0;
    color: #59635d;
    font-size: 0.92rem;
    line-height: 1.5;
}

.metro-notice-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid #d7e0d9;
    border-radius: 11px;
    background: #ffffff;
    color: #176334;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.metro-notice-link:hover {
    background: #009b3a;
    border-color: #009b3a;
    color: #ffffff;
}

.metro-notice-link:focus-visible {
    outline: 3px solid #009b3a;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .metro-notice {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 16px;
        gap: 12px;
    }
    .metro-notice-link {
        grid-column: 2;
        justify-self: start;
        white-space: normal;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .transport-bento {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .metro-card { min-height: auto; }
    .bus-card { order: 2; }
    .tram-card { order: 3; }
    .parking-card { order: 4; }
    .metro-line-section { padding-bottom: 20px; margin-bottom: 20px; }
    .metro-line-section:last-child { margin-bottom: 0; padding-bottom: 0; border: none !important; }
}

@media (max-width: 768px) {
    .parking-card { flex-direction: column; }
    .parking-card .d-flex { width: 100%; }
    .border-end-md { border-right: none !important; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; margin-bottom: 20px; padding-right: 0 !important; }
}
