/* ==========================================================================
   TRAININGS DETAIL — promo/detail stránka jedného tréningu
   (customer.trainings.show). Zámerne v rovnakom jazyku ako zvyšok webu:
     · hero ako stránka typu tréningu (.tt-hero): tmavý blok, colorbar v farbe
       typu, Barlow Condensed 700 uppercase názov, foto vpravo s overlayom
     · obsah v bielych kartách .pf-card + tlačidlá .pf-btn (profile-shared.css)
   Tokeny: --neon, --dark, --dark-hover zo styles.css :root.
   Akcentová farba typu sa odovzdáva cez --td-color na .td-page.
   ========================================================================== */

.td-page {
    --td-color: var(--neon);
    width: 100%;
    text-align: left;
    padding-bottom: 64px;
}

/* ---------------------------------------------------------------------------
   1. HERO — rovnaký vzhľad ako .tt-hero na stránke typu tréningu
--------------------------------------------------------------------------- */

.td-hero {
    background-color: #111111;
    color: #fff;
    overflow: hidden;
}

.td-hero-bar {
    display: block;
    height: 8px;
    background-color: var(--td-color);
}

.td-hero-main {
    display: flex;
    align-items: stretch;
    min-height: 320px;
}

.td-hero-left {
    flex: 1 1 55%;
    min-width: 0;
    background-color: #000;
    padding: 30px 34px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.td-breadcrumb {
    font-size: 13px;
    color: #9a9a9a;
    margin-bottom: 16px;
}

.td-breadcrumb a {
    color: #c9c9c9;
}

.td-breadcrumb a:hover {
    color: var(--neon);
}

.td-breadcrumb span {
    color: #6f6f6f;
    margin: 0 6px;
}

.td-kicker {
    display: inline-block;
    align-self: flex-start;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #fff;
    background-color: var(--td-color);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.td-hero-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.04;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.td-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 22px;
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    color: #e3e3e3;
}

.td-hero-meta .td-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.td-hero-meta i {
    color: var(--neon);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.td-hero-meta .td-dot {
    color: #555;
}

/* foto vpravo s farebným/tmavým overlayom (ako .tt-hero-right) */
.td-hero-media {
    position: relative;
    flex: 1 1 45%;
    min-width: 0;
    background-color: var(--td-color);
    overflow: hidden;
}

.td-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-hero-media .td-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0) 100%);
}

/* ---------------------------------------------------------------------------
   2. OBSAH — kontajner + 2-stĺpcový grid (hlavné + bočný panel)
--------------------------------------------------------------------------- */

.td-body {
    padding: 28px 20px 0;
}

.td-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.td-main {
    min-width: 0;
}

.td-side {
    min-width: 0;
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------------------------------------------------------------------------
   3. DETAIL — mriežka údajov (dátum/čas/tréner/sála)
--------------------------------------------------------------------------- */

.td-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.td-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 0, 106, 0.08);
    color: var(--neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.td-info-label {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9a9a9a;
    margin: 0;
}

.td-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin: 1px 0 0;
}

a.td-info-value:hover {
    color: var(--neon);
}

.td-desc {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #ededed;
}

.td-desc-body {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* benefits strip */
.td-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.td-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.td-benefit i {
    color: var(--neon);
    font-size: 16px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   4. REZERVAČNÝ PANEL
--------------------------------------------------------------------------- */

.td-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.td-row + .td-row,
.td-block + .td-block {
    margin-top: 14px;
}

.td-muted {
    color: #8a8a8a;
    font-size: 14px;
}

.td-strong {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    color: var(--dark);
    font-size: 17px;
}

/* obsadenosť */
.td-occupancy {
    margin-bottom: 16px;
}

.td-bar {
    width: 100%;
    height: 8px;
    background: #ededed;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.td-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--neon);
}

.td-bar-fill.is-high {
    background: #f59e0b;
}

.td-bar-fill.is-full {
    background: #e23b3b;
}

.td-hint {
    font-size: 13px;
    color: #9a9a9a;
    margin-top: 8px;
}

.td-hint.is-scarce {
    color: var(--neon);
    font-weight: 600;
}

/* cena */
.td-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #ededed;
}

.td-price {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: var(--dark);
    line-height: 1;
}

.td-price--free {
    color: #28a745;
}

.td-price-strike {
    text-decoration: line-through;
    color: #b6b6b6;
    font-size: 15px;
    font-weight: 600;
    margin-right: 6px;
}

/* účastníci */
.td-attendees {
    margin: 14px 0;
    padding-top: 14px;
    border-top: 1px solid #ededed;
}

.td-attendees-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9a9a9a;
    margin: 0 0 8px;
}

.td-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.td-chip {
    font-size: 12px;
    color: #555;
    background: #f4f4f4;
    border-radius: 6px;
    padding: 3px 9px;
}

/* informačné boxy (stavy) */
.td-notice {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.td-notice--ok {
    background: #eafaf0;
    color: #1c7a3e;
    border: 1px solid #c7ecd5;
}

.td-notice--muted {
    background: #f4f4f4;
    color: #777;
    border: 1px solid #e6e6e6;
}

.td-notice--full {
    background: #fdecec;
    color: #b42a2a;
    border: 1px solid #f6cccc;
}

.td-firstfree {
    border: 1px solid #c7ecd5;
    background: #eafaf0;
    color: #1c7a3e;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.td-firstfree-warn {
    display: block;
    font-weight: 400;
    color: #b8860b;
    font-size: 12px;
    margin-top: 6px;
}

/* akcie */
.td-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-actions .pf-btn {
    width: 100%;
}

.pf-btn--danger {
    background-color: #fdecec;
    color: #b42a2a;
    border-color: #f6cccc;
}

.pf-btn--danger:hover:not(:disabled) {
    background-color: #f9dcdc;
    color: #b42a2a;
}

.td-insufficient {
    font-size: 13px;
    color: #b42a2a;
    text-align: center;
    margin-top: 8px;
}

.td-insufficient a {
    color: var(--neon);
    text-decoration: underline;
    font-weight: 600;
}

/* spodný riadok: späť + zdieľať */
.td-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    padding: 0 2px;
}

.td-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8a8a8a;
}

.td-foot a:hover {
    color: var(--neon);
}

/* ---------------------------------------------------------------------------
   5. VÝBER MIESTA (seat picker)
--------------------------------------------------------------------------- */

.td-seat-prompt {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin: 4px 0 12px;
}

.td-seat-stage {
    text-align: center;
    margin: 6px 0 12px;
}

.td-seat-stage span {
    display: inline-block;
    background: #efefef;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px;
    border-radius: 999px;
}

.td-seat-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.td-seat-row {
    display: flex;
    align-items: center;
}

.td-seat-rowlabel {
    width: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #b0b0b0;
    text-align: right;
    margin-right: 6px;
    flex-shrink: 0;
}

.td-seat-cells {
    display: flex;
    gap: 3px;
}

.seat-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 2px solid var(--neon);
    background: #fff;
    color: var(--neon);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.seat-btn:hover:not(:disabled) {
    background: rgba(255, 0, 106, 0.1);
}

.seat-btn.is-selected {
    background: var(--neon);
    color: #fff;
}

.seat-btn:disabled {
    border-color: #dcdcdc;
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
}

.seat-spacer {
    width: 34px;
    height: 34px;
}

.td-seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-size: 12px;
    color: #777;
}

.td-seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.td-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 2px solid var(--neon);
    background: #fff;
}

.td-swatch.is-occupied {
    border-color: #dcdcdc;
    background: #f0f0f0;
}

.td-swatch.is-selected {
    border-color: var(--neon);
    background: var(--neon);
}

/* ---------------------------------------------------------------------------
   6. RESPONSIVE
--------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
    .td-grid {
        grid-template-columns: 1fr;
    }

    .td-side {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .td-hero-main {
        flex-direction: column;
    }

    .td-hero-left {
        padding: 26px 20px 24px;
        order: 2;
    }

    .td-hero-media {
        order: 1;
        min-height: 200px;
        flex-basis: auto;
    }

    .td-hero-media .td-hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 100%);
    }

    .td-hero-name {
        font-size: 38px;
    }

    .td-info-grid {
        grid-template-columns: 1fr;
    }

    .td-benefits {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .td-hero-name {
        font-size: 32px;
    }
}
