/*
 * reporty.css
 * Štýly pre stránku reporty.php (archív reportov)
 * Využíva farby a premenné z main.css (F1 dark theme)
 */

/* ZÁKLAD SEKCIE */

.last-race-reports-section {
    max-width: 1200px;
    margin: 30px auto 40px;
    padding: 0 16px 40px;

    color: var(--color-text, #f3f4f6);
}

/* Nadpis archívu */

.last-race-reports-section h1 {
    font-size: 2.1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-align: center;
    margin-bottom: 26px;
    color: #ffffff;
    position: relative;
}

.last-race-reports-section h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #e10600, #00bcd4);
    border-radius: 999px;
}

/* KONTAJNER NA KARTY REPORTOV */

.reports-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* JEDEN REPORT (KARTA) */

.last-race-report {
    width: 100%;
}

/* Klikateľná karta */

.report-teaser-link {
    display: block;
    text-decoration: none;
    color: inherit;

    background: rgba(10, 10, 24, 0.98);
    border-radius: 16px;
    padding: 22px 20px;

    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.85),
        0 0 16px rgba(0, 0, 0, 0.8);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

/* Hover efekt */

.report-teaser-link:hover {
    background: radial-gradient(circle at top left, rgba(225, 6, 0, 0.18) 0, rgba(10, 10, 28, 1) 50%);
    transform: translateY(-3px);
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.9),
        0 0 22px rgba(225, 6, 0, 0.45);
    border-color: rgba(225, 6, 0, 0.75);
}

/* Nadpis reportu */

.report-teaser-link h3 {
    color: #ff1e00;
    margin-top: 0;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 2px solid rgba(107, 114, 128, 0.7);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

/* Meta info (názov preteku, dátum) */

.report-meta {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 16px;
    font-style: italic;
}

/* PREVIEW OBSAHU = obrázok + text */

.report-content-preview {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

/* Náhľadový obrázok */

.report-thumb {
    width: 220px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;

    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.8);
}

/* Text teaseru */

.report-content-preview p {
    flex-grow: 1;
    margin: 0;
    color: #e5e7eb;
    line-height: 1.6;
    font-size: 0.98rem;
}

/* "Čítať celý článok" */

.read-more-btn {
    display: block;
    margin-top: 14px;
    color: #ff1e00;
    font-weight: 700;
    text-align: right;
    font-size: 0.95rem;
    width: 100%;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ----------------------------------------------------------
   MODÁLNE OKNO – celý článok
   (rovnaké správanie ako na indexe, len mierne vylepšený vzhľad)
   ---------------------------------------------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.9);

    padding: 20px 0;
}

/* Obsah modalu */

.modal-content {
    background: radial-gradient(circle at top, #141622 0, #050712 50%);
    margin: 24px auto;
    padding: 32px 26px;

    border: 1px solid rgba(148, 163, 184, 0.6);
    width: 92%;
    max-width: 1000px;
    border-radius: 14px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.95),
        0 0 28px rgba(0, 188, 212, 0.18);

    color: #e5e7eb;
    position: relative;
}

/* Close button (X) */

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;

    font-size: 2rem;
    font-weight: 700;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
    transform: scale(1.08);
}

/* Nadpis v modale */

.modal-title {
    color: #ff1e00;
    border-bottom: 3px solid rgba(75, 85, 99, 0.9);
    padding-bottom: 14px;
    margin-bottom: 18px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Info o preteku */

.modal-race-info {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* Hlavný obrázok v článku */

.report-main-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 12px 0 24px;

    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.9);
}

/* Text článku (HTML z DB) */

.modal-body-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #e5e7eb;
}

/* Prípadné odstavce vnútri HTML */

.modal-body-text p {
    margin-bottom: 14px;
}

/* Listy vnútri článku */

.modal-body-text ul {
    margin-left: 20px;
    margin-bottom: 14px;
}

.modal-body-text li {
    margin-bottom: 6px;
}

/* ==========================================================================
   RESPONZÍVNE NASTAVENIA (TABLET / MOBIL)
   ========================================================================== */

/* max 992px – menšie obrazovky / notebooky */

@media (max-width: 992px) {
    .last-race-reports-section {
        margin-top: 24px;
    }

    .report-teaser-link {
        padding: 20px 16px;
    }

    .report-content-preview {
        gap: 18px;
    }

    .report-thumb {
        width: 200px;
        height: 120px;
    }
}

/* max 768px – tablet / väčší mobil */

@media (max-width: 768px) {
    .last-race-reports-section {
        margin-top: 20px;
        padding: 0 12px 30px;
    }

    .last-race-reports-section h1 {
        font-size: 1.8rem;
        letter-spacing: 0.14em;
    }

    .report-teaser-link {
        padding: 18px 14px;
    }

    .report-content-preview {
        flex-direction: column;
        gap: 14px;
    }

    .report-thumb {
        width: 100%;
        height: auto;
    }

    .modal-content {
        width: 94%;
        padding: 24px 16px;
    }

    .modal-title {
        font-size: 1.6rem;
    }
}

/* max 430px – malé mobily */

@media (max-width: 430px) {
    .last-race-reports-section h1 {
        font-size: 1.6rem;
    }

    .report-teaser-link h3 {
        font-size: 1.3rem;
    }

    .read-more-btn {
        font-size: 0.85rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }
}
