﻿/* =========================
   ABOUT – TargetFan modern
========================= */

.tf-about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 14px 60px;
    display: grid;
    gap: 22px;
}

/* CARD */
.tf-about-card {
    border-radius: 26px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(18,21,27,.75), rgba(18,21,27,.55));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 22px 80px rgba(0,0,0,.55);
}

/* TITLES */
.tf-about-title {
    font-weight: 950;
    color: #fff;
    margin: 10px 0;
    font-size: clamp(22px, 3vw, 36px);
}

.tf-about-sub {
    color: rgba(229,231,235,.72);
    max-width: 800px;
    line-height: 1.6;
}

/* VALUES */
.tf-about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
    margin-top: 18px;
}

.tf-about-value {
    padding: 16px;
    border-radius: 18px;
    background: rgba(11,13,16,.45);
    border: 1px solid rgba(255,255,255,.08);
    font-weight: 900;
    color: var(--tf-gold-soft);
}

/* GRID */
.tf-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 14px;
}

/* TILE */
.tf-about-tile {
    padding: 18px;
    border-radius: 18px;
    background: rgba(11,13,16,.45);
    border: 1px solid rgba(255,255,255,.08);
    transition: .18s ease;
}

    .tf-about-tile:hover {
        transform: translateY(-3px);
        border-color: rgba(212,175,55,.22);
    }

/* TIMELINE */
.tf-timeline {
    display: grid;
    gap: 20px;
    margin-top: 14px;
}

.tf-timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
}

.tf-timeline-year {
    font-weight: 950;
    color: var(--tf-gold);
    font-size: 18px;
    text-align: right;
    padding-top: 10px;
}

.tf-timeline-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(11,13,16,.45);
    border: 1px solid rgba(255,255,255,.08);
}

    .tf-timeline-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .tf-timeline-card h4 {
        margin: 12px;
        font-weight: 900;
    }

    .tf-timeline-card p {
        margin: 0 12px 14px;
        color: rgba(229,231,235,.72);
    }

/* MOBILE */
@media(max-width:768px) {
    .tf-timeline-item {
        grid-template-columns: 1fr;
    }

    .tf-timeline-year {
        text-align: left;
    }
}

/* ===== ABOUT: HARD OVERRIDES (na koniec pliku) ===== */

/* scoped tylko do About */
.tf-about {
    color: var(--tf-text);
}

    /* tytuły i teksty */
    .tf-about .tf-about-title,
    .tf-about h1, .tf-about h2, .tf-about h3 {
        color: #fff;
    }

    .tf-about .tf-about-sub,
    .tf-about p {
        color: rgba(229,231,235,.72);
    }

    /* karty/sekcje */
    .tf-about .tf-about-card {
        background: rgba(18,21,27,.72);
        border: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 22px 80px rgba(0,0,0,.55);
    }

    /* “dlaczego my” kafle – żeby nie robiły się szare/wyblakłe */
    .tf-about .tf-about-tile,
    .tf-about .tf-about-value {
        background: rgba(11,13,16,.35);
        border: 1px solid rgba(255,255,255,.08);
        color: rgba(229,231,235,.85);
    }

    .tf-about .tf-about-tile-title,
    .tf-about .tf-about-value {
        font-weight: 900;
    }

    .tf-about .tf-about-tile-sub,
    .tf-about .tf-about-value-sub {
        display: block;
        margin-top: 6px;
        font-weight: 650;
        color: rgba(229,231,235,.70);
    }

/* ===== ABOUT MODAL / SLIDER FIX ===== */

.tf-about-modal .modal-dialog {
    margin-top: max(16px, var(--tf-nav-h)); /* żeby sticky header nic nie wcinał */
}

.tf-about-modal-content {
    background: rgba(18,21,27,.96);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    overflow: hidden;
}

.tf-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-slider-viewport {
    flex: 1;
    overflow: hidden; /* KLUCZ: nic nie wychodzi poza modal */
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(11,13,16,.35);
}

.tf-slider-track {
    display: flex;
    gap: 12px;
    transition: transform .35s ease;
    will-change: transform;
}

    .tf-slider-track img {
        flex: 0 0 100%; /* KLUCZ: każde zdjęcie zajmuje 100% viewport */
        width: 100%;
        max-width: 100%;
        height: clamp(260px, 62vh, 680px); /* kontrola wysokości */
        object-fit: contain; /* nic nie ucina, nie rozciąga */
        border-radius: 12px;
        background: rgba(0,0,0,.25);
    }

.tf-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(11,13,16,.55);
    color: var(--tf-gold-soft);
    font-weight: 950;
}

    .tf-slider-btn:hover {
        background: rgba(212,175,55,.12);
        border-color: rgba(212,175,55,.22);
        color: #fff;
    }

.tf-about-modal-desc {
    margin-top: 12px;
    color: rgba(229,231,235,.75);
    line-height: 1.55;
}

.modal {
    z-index: 2147484000;
}

.modal-backdrop {
    z-index: 2147483990;
}

/* =========================
   ABOUT MODAL - kontrast fix
   scoped: .tf-about-modal
========================= */

.tf-about-modal .modal-content.tf-about-modal-content {
    background: rgba(18, 21, 27, 0.96);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
    color: rgba(229,231,235,0.86);
}

/* Header – najczęściej tu ginie tekst */
.tf-about-modal .modal-header.tf-about-modal-header {
    background: rgba(11, 13, 16, 0.55);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Title w headerze */
.tf-about-modal .tf-about-modal-title {
    color: #ffcc00; /* TF gold */
    font-weight: 950;
    letter-spacing: .2px;
    margin: 6px 0 0;
}

/* Badge w headerze (żeby nie robił “szarego”) */
.tf-about-modal .modal-header .tf-badge {
    border: 1px solid rgba(255,204,0,0.25);
    color: rgba(255,204,0,0.92);
    background: rgba(0,0,0,0.35);
}

/* Body tekst */
.tf-about-modal .modal-body.tf-about-modal-body {
    color: rgba(229,231,235,0.84);
}

/* Opis pod sliderem */
.tf-about-modal .tf-about-modal-desc {
    margin-top: 14px;
    color: rgba(229,231,235,0.78);
    line-height: 1.55;
}

/* X (btn-close) – domyślnie na dark bywa niewidoczny */
.tf-about-modal .btn-close {
    filter: invert(1);
    opacity: .78;
}

    .tf-about-modal .btn-close:hover {
        opacity: 1;
    }

/* Slider buttony – żeby były widoczne i spójne */
.tf-about-modal .tf-slider-btn {
    background: rgba(255,204,0,0.12);
    border: 1px solid rgba(255,204,0,0.22);
    color: rgba(255,204,0,0.95);
}

    .tf-about-modal .tf-slider-btn:hover {
        background: rgba(255,204,0,0.18);
        border-color: rgba(255,204,0,0.28);
        color: #fff;
    }


@media (max-width: 768px) {
    .tf-about-modal .modal-dialog {
        margin: 12px;
    }

    .tf-about-modal .modal-content {
        border-radius: 16px;
    }
}
