/* RESET */
* {
    box-sizing: border-box;
}

body {
    background: url("img/missions/kamp.webp") no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
/*    background: #0b0e13;*/
    color: #eaeaea;
}

/* =========================
   BELKA GÓRNA
========================= */

.topbar {
    width: 100%;
    background: #05070a;
    border-bottom: 3px solid #c9a227;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px 18px 20px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.mission-subtitle.has-date {
    color: #64a2d9; /* kolor tekstu bazowego */
}

/* DATA + GODZINA */
.mission-subtitle.has-date::after {
    content: "";
}

/* regex-like hack – kolorujemy wszystko po dacie */
.mission-subtitle.has-date {
    font-weight: 600;
    background: linear-gradient(
        to right,
        #64a2d9 0%,        /* kolor nazwy misji */
        #64a2d9 58%,
        #ff361c 58%,       /* <<< kolor daty */
        #ff361c 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.topbar-nav a {
    margin-left: 20px;
    color: #eaeaea;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.topbar-nav a:hover {
    color: #ffd966;
}

.topbar-line-2 {
    justify-self: center;
    text-align: center;
}

.mission-title {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #ffd966;
    letter-spacing: 1px;
    text-align: center;
}

.mission-subtitle {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 6px;
    font-size: 20px;
    color: #9fd3ff;
    letter-spacing: 0.5px;
    text-shadow:
        0 0 4px rgba(159,211,255,0.6),
        0 0 10px rgba(159,211,255,0.4),
        0 2px 4px rgba(0,0,0,0.8);
}
/* =========================
   GŁÓWNA ZAWARTOŚĆ
========================= */

.container {
    max-width: 1200px;
    margin: 25px auto;
    background: rgba(0, 0, 0, 0.85);
    padding: 25px;
    border-radius: 12px;
}
/* =========================
   THREAT OVERVIEW – FINAL
========================= */

.threat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* wspólne */
.threat-list li {
    margin-bottom: 6px;
}
/* NAGŁÓWKI */
.threat-heading .threat-text {
    display: inline-block;
    padding-left: 0;
    font-weight: 600;
    color: #ffd966;
}

.threat-item .threat-text {
    display: inline-block;
    padding-left: 22px;
}
.fabula-text {
    line-height: 1.6;
}

/* =========================
   SEKCJE
========================= */

section {
    background: rgba(20, 20, 20, 0.95);
    border-left: 6px solid #c9a227;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 6px;
}

section h2 {
    margin-top: 0;
    color: #ffd966;
    border-bottom: 1px solid #444;
    padding-bottom: 6px;
}

/* =========================
   MAPA MISJI
========================= */

.mapa-misji {
    text-align: center;
}

.mapa-misji img {
    max-width: 100%;
    margin-top: 10px;
    border-radius: 6px;
    border: 2px solid #444;
}

/* =========================
   BLOKI GRUP
========================= */

.baza {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #444;
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
}

.baza h3 {
    margin-top: 0;
    color: #9fd3ff;
}

.unit {
    color: #c9a227;
    font-style: italic;
    margin-bottom: 8px;
}

/* =========================
   LISTY
========================= */

ul {
    margin-left: 20px;
    margin-top: 6px;
}

li {
    margin-bottom: 4px;
}

/* =========================
   ZAGROŻENIA
========================= */

.zagrozenia-title {
    margin-top: 10px;
    font-weight: bold;
    color: #ffb703;
}

.zagrozenia {
    color: #ffb703;
}
/* =========================
   ZDJĘCIA W SLOTACH
========================= */

.slot-image-wrapper {
    margin-top: 10px;
    text-align: right;
    position: relative;
}

.slot-image {
    max-width: 30%;   /* <-- TU regulujesz rozmiar slotów */
    width: 100%;
    height: auto;
    border: 1px solid #444;
    border-radius: 6px;
    margin-right: 80px;
    cursor: zoom-in;
    pointer-events: auto;   /* KLUCZ */
    position: relative;
    z-index: 2;
}
.slot-image-wrapper::after {
    pointer-events: none;   /* 🔥 ODBLOKOWUJE KLIK */
}
/* =========================
   LIGHTBOX
========================= */

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    border: 2px solid #666;
}
.slot-image {
    cursor: zoom-in;
}

/* =========================
   SLOT: TEKST + ZDJĘCIE OBOK
========================= */

.slot-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.slot-text {
    flex: 1 1 auto;
}

.slot-image-wrapper {
    flex: 0 0 auto;
}

.slot-image {
    max-width: 360px;   /* <-- szerokość zdjęcia w slocie */
    width: 100%;
    height: auto;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: zoom-in;
}
/* =========================
   LICZNIK MISJI (PREMIUM)
========================= */

.countdown-box {
    justify-self: end;
    text-align: right;
    font-size: 20px;
    font-weight: bold;
    color: #9fd3ff;              /* domyślnie jasny niebieski */
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow:
        0 0 6px rgba(159,211,255,0.6),
        0 2px 6px rgba(0,0,0,0.8);
}

/* < 3 dni */
.countdown-box.warn {
    color: #ffb703;              /* pomarańczowy */
    text-shadow:
        0 0 6px rgba(255,183,3,0.6),
        0 2px 6px rgba(0,0,0,0.8);
}

/* DZIEŃ MISJI */
.countdown-box.danger {
    color: #ff4d4d;              /* czerwony */
    text-shadow:
        0 0 6px rgba(255,77,77,0.8),
        0 2px 6px rgba(0,0,0,0.9);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}
/* =========================
   ALARM DŹWIĘKOWY (FLASH)
========================= */

.countdown-box.alarm {
    animation: blink-fast 0.5s infinite;
}

@keyframes blink-fast {
    0%   { opacity: 1; }
    50%  { opacity: 0.2; }
    100% { opacity: 1; }
}
/* =========================
   PRZYCISK PRZEWIJANIA
========================= */

#scrollTopBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #9fd3ff;
    border-radius: 50%;
    color: #9fd3ff;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;

    box-shadow:
        0 0 8px rgba(159,211,255,0.4),
        0 4px 10px rgba(0,0,0,0.8);
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

#scrollTopBtn:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 12px rgba(159,211,255,0.7),
        0 6px 14px rgba(0,0,0,0.9);
}
.text-divider {
    width: 60%;
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(
        to right,
        rgba(255, 200, 80, 0),
        rgba(255, 200, 80, 0.9),
        rgba(255, 200, 80, 0)
    );
}
.fabula-text p {
    margin: 6px 0;
    line-height: 1.5;
}
/* =========================
   TRYB DRUKU / PDF
========================= */
@media print {

    body {
        background: #fff;
        color: #000;
    }

    .topbar,
    .print-link,
    #scrollTopBtn,
    #lightbox {
        display: none !important;
    }

    .container {
        width: 100%;
        padding: 0;
    }

    /* ❌ NIE BLOKUJEMY CAŁYCH SEKCJI */
    section {
        margin-bottom: 20px;
    }

    /* ✅ CHRONIMY TYLKO KLUCZOWE ELEMENTY */
    h2, h3 {
        page-break-after: avoid;
    }

    img,
    .baza,
    .slot-layout {
        page-break-inside: avoid;
    }

    /* separator */
    .text-divider {
        background: #000;
        opacity: 0.3;
    }
}

.print-link {
    color: #d4af37; /* złoty jak briefing */
    font-weight: 600;
    text-decoration: none;
    margin-left: 12px;
}

.print-link:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 200, 80, 0.8);
}
/* =========================
   PRZYCISK PRZEWIJANIA DO GÓRY
========================= */
#scrollTopBtn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    background: rgba(20, 20, 20, 0.85);
    color: #f5c36a;
    border: 1px solid rgba(245, 195, 106, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: rgba(245, 195, 106, 0.15);
    box-shadow: 0 0 10px rgba(245, 195, 106, 0.6);
}

/* NIE DRUKUJEMY PRZYCISKU */
@media print {
    #scrollTopBtn {
        display: none !important;
    }
}

.tasks-title {
    font-weight: 600;
    margin-top: 8px;
}

.req-title {
    font-weight: 600;
    color: #9fd3ff;
    margin-top: 6px;
}

.requirements {
    list-style: square;
    margin-left: 18px;
}
/* === GROUP TASKS === */
.group-tasks {
    margin-top: 40px;
}

/* podsekcja (Tarawa, Kutaisi...) */
.task-subsection {
    margin-top: 24px;
}

/* nazwa podsekcji */
.task-subsection-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff5f5f; /* czerwony jak na screenie */
    text-transform: uppercase;
    margin-bottom: 14px;
}
/* === GROUP TASKS === */
.group-tasks {
    margin-top: 60px;
}

.group-tasks > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #f0c04a;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* podsekcja: LONDON / KUTAISI */
.task-subsection {
    margin-bottom: 40px;
}

/* nagłówek sekcji – klikany */
.task-subsection-title {
    cursor: pointer;
    color: #e74c3c;
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-subsection-title::before {
    content: "▸";
    color: #f0c04a;
    transition: transform 0.2s ease;
}

/* po rozwinięciu */
.task-subsection.open .task-subsection-title::before {
    transform: rotate(90deg);
}

/* zawartość sekcji */
.task-subsection-content {
    padding-left: 15px;
    border-left: 2px solid rgba(240,192,74,0.6);
    margin-left: 5px;
}

/* baza (grupa) – delikatne oddzielenie */
.baza {
    margin-bottom: 25px;
}
/* === HQ – UWAGI DOWÓDCY (KOMPAKT) === */
.hq-section {
    margin-top: 50px;
    padding: 14px 22px;
    border-left: 4px solid #5dade2;
    background: rgba(93, 173, 226, 0.08);
}

.hq-section h2 {
    margin: 0 0 10px 0;
    color: #5dade2;
}

/* LISTA ROZKAZÓW */
.hq-section ul {
    list-style: disc;
    margin: 4px 0 6px 18px;   /* KLUCZ – brak pustych pasów */
    padding: 0;
}

.hq-section li {
    margin: 2px 0;           /* ciaśniej */
    line-height: 1.35;
}

/* separator --- */
.hq-section .text-divider {
    margin: 10px 0;
}

/* =========================
   STOPKA
========================= */

footer {
    text-align: center;
    color: #888;
    margin-top: 30px;
    font-size: 13px;
}
