/*
 |--------------------------------------------------------------------------
 | TSLinie – custom overrides for client template (prefixed .tsl-*)
 |--------------------------------------------------------------------------
 */

/* Small monospace key under group name */
.tsl-key {
    font-size: 12px;
    color: #666;
}
.tsl-key code {
    background: #f5f7fb;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Capacity hint next to term label */
.tsl-capacity {
    font-size: 12px;
    margin-left: 6px;
}
.tsl-capacity-ok {
    color: #065f46; /* emerald-800 */
    font-weight: 600;
}
.tsl-capacity-full {
    color: #991b1b; /* red-800 */
    font-weight: 700;
}

/* Primary action button enhancer */
.tsl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px; /* pill */
    box-shadow: 0 6px 12px rgba(124, 95, 250, 0.22);
    transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.tsl-btn-primary:hover,
.tsl-btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(124, 95, 250, 0.28);
}

/* Full capacity badge */
.tsl-badge-full {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    padding: 6px 10px;
    border-radius: 999px;
}

/* Term row wrapping on small screens */
@media (max-width: 575.98px) {
    .tsl-capacity { display: block; margin-left: 0; margin-top: 2px; }
}

/* Past terms – render weaker */
.tsl-past {
    opacity: 0.5;
}

/* Menu pill CTA (Login / Moje kurzy) */
.tsl-menu-pill {
    display: inline-block;
    padding: 9px 16px; /* better hit area */
    border-radius: 999px;
    border: 1px solid #7c5ffa;
    color: #7c5ffa !important;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease, box-shadow .2s ease, border-color .15s ease;
}
#mega-menu-holder>ul> li> a.tsl-menu-pill {
    padding: 8px 0.8em 4px;
}
.top-header-section.fixed #mega-menu-holder>ul> li> a.tsl-menu-pill {
    padding-top: 8px;
    position: relative;
    top: 6px;
}
.tsl-menu-pill:hover {
    background-color: #ede9fe;
    box-shadow: 0 4px 10px rgba(124,95,250,.18);
}
.tsl-menu-pill-strong {
    background-color: #7c5ffa;
    color: #fff !important;
    border-color: #7c5ffa;
}
.tsl-menu-pill-strong:hover {
    background-color: #6a4cf5;
}

/* Improve accessibility focus */
.tsl-menu-pill:focus,
.tsl-menu-pill-strong:focus {
    outline: 2px solid #6a4cf5;
    outline-offset: 2px;
}

/* Header states adjustments */
/* 1) On light menu over banner (no .dark-color), use white variant for contrast */
.theme-main-menu:not(.dark-color) .tsl-menu-pill {
    border-color: #ffffff;
    color: #ffffff !important;
    background-color: transparent;
}
.theme-main-menu:not(.dark-color) .tsl-menu-pill:hover {
    background-color: rgba(255,255,255,0.14);
}
.theme-main-menu:not(.dark-color) .tsl-menu-pill-strong {
    background-color: #ffffff;
    color: #1b1b1b !important;
    border-color: #ffffff;
}
.theme-main-menu:not(.dark-color) .tsl-menu-pill-strong:hover {
    background-color: #f3f4f6; /* light gray hover */
}

/* 2) When header becomes sticky (orange bg), switch to clean white or outlined variant */
.top-header-section.fixed .tsl-menu-pill {
    background-color: #ffffff;
    color: #1b1b1b !important;
    border-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.top-header-section.fixed .tsl-menu-pill:hover {
    background-color: #f8fafc;
}
.top-header-section.fixed .tsl-menu-pill-strong {
    background-color: #ffffff;
    color: #6a4cf5 !important; /* brand text */
    border-color: #6a4cf5;
}
.top-header-section.fixed .tsl-menu-pill-strong:hover {
    background-color: #f3f0ff;
}

/* Balanced vertical spacing utility for content sections */
.tsl-section-py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (max-width: 991px) {
    .tslinie-menu {
        padding-top: 0.5em;
        padding-bottom: 1em;
        padding-left: 1em;
        padding-right: 1em;
    }
    .tslinie-menu .tsl-menu-pill {
        display: inline;
    }
}
