/* =====================================================================
   Základná téma zákazníckeho webu (fitká bez vlastného webu, napr. DEV FITNESS)
   Načítava sa ako posledná – prekrýva farby a hlavičku plnej (NEONKA) témy.
   Akcent: --neon (predvolene modrá, fitko si ho môže nastaviť cez color_primary).
   ===================================================================== */
body.theme-basic {
    --neon: #2563eb;
    --neon-light: rgba(37, 99, 235, 0.45);
    --dark: #111827;
    --dark-hover: #1f2937;
    background: #f5f6f8;
}

/* ---------- hlavička ---------- */
body.theme-basic .hb {
    background: var(--dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
body.theme-basic .hb-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 64px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    position: relative;
}
body.theme-basic .hb-brand {
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 64px;
}
body.theme-basic .hb-logo { max-height: 36px; width: auto; display: block; }

/* navigácia – prebíja globálne .nav-list zo styles.css (absolute panel plnej témy) */
body.theme-basic .hb .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    position: static;
    width: auto;
    height: auto;
    margin: 0 auto 0 8px;
    padding: 0;
    list-style: none;
    background: transparent;
    color: #fff;
}
body.theme-basic .hb .nav-item,
body.theme-basic .hb .nav-item.active { position: relative; margin: 0; padding: 0; background: transparent; box-shadow: none; }
body.theme-basic .hb .nav-item > a,
body.theme-basic .hb .nav-item > span {
    display: inline-flex;
    align-items: center;
    min-height: 64px;
    padding: 0 12px;
    color: #d1d5db;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}
body.theme-basic .hb .nav-item > a:hover,
body.theme-basic .hb .nav-item.active > a { color: #fff; border-bottom-color: var(--neon); }
body.theme-basic .hb .nav-item.hb-contact > a { text-transform: none; letter-spacing: 0; font-weight: 500; color: #9ca3af; }
body.theme-basic .hb .nav-item.hb-contact > a:hover { color: #fff; border-bottom-color: transparent; }
/* jazyk – rozbaľovací zoznam */
body.theme-basic .hb .hb-lang .submenu-wrapper {
    position: absolute; top: 100%; left: 0; min-width: 160px;
    background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    max-height: 0; overflow: hidden; transition: max-height 0.2s ease;
}
body.theme-basic .hb .hb-lang:hover .submenu-wrapper,
body.theme-basic .hb .hb-lang.is-open .submenu-wrapper { max-height: 320px; }
body.theme-basic .hb .submenu { list-style: none; margin: 0; padding: 6px 0; }
body.theme-basic .hb .submenu-item a { display: block; padding: 8px 14px; color: #111827; text-decoration: none; font-size: 14px; }
body.theme-basic .hb .submenu-item a:hover { background: #f3f4f6; }

/* prihlásenie / používateľ */
body.theme-basic .hb-auth { display: flex; align-items: center; align-self: center; gap: 10px; margin-left: auto; }
body.theme-basic .hb-brand,
body.theme-basic .hb .nav-list { align-self: center; }
body.theme-basic .hb-login {
    color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 14px;
    border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; white-space: nowrap;
}
body.theme-basic .hb-login:hover { border-color: #fff; }
body.theme-basic .hb-register {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
    background: var(--neon); color: var(--neon-contrast, #fff); text-decoration: none; font-weight: 700; font-size: 14px;
    padding: 8px 16px; border-radius: 8px; white-space: nowrap; transition: filter 0.15s ease;
}
body.theme-basic .hb-register:hover { filter: brightness(1.1); }
body.theme-basic .hb-register small { font-size: 11px; font-weight: 500; opacity: 0.9; }
body.theme-basic .hb-user { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
body.theme-basic .hb-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--neon); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
body.theme-basic .hb-user-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
body.theme-basic .hb-user-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
body.theme-basic .hb-user-credit { font-size: 12px; color: #9ca3af; }
body.theme-basic .hb-logout-form { margin: 0; }
body.theme-basic .hb-logout {
    background: transparent; color: #d1d5db; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
    padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
body.theme-basic .hb-logout:hover { color: #fff; border-color: #fff; }

/* hamburger – len na mobile. Animácia krížika je globálna (styles.css: pásik 1 ide o 7 px dole a otočí sa,
   pásik 2 sa otočí na mieste, pásik 3 zmizne) – preto rozostup pásikov presne 5 px bez marginov. */
body.theme-basic .hb-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px !important; width: 40px; height: 40px; padding: 0; margin-left: auto; background: transparent; border: 0; cursor: pointer; }
body.theme-basic .hb-hamburger .bar { position: static !important; display: block !important; width: 24px !important; height: 2px !important; margin: 0 !important; background: #fff !important; border-radius: 2px; }
body.theme-basic .hb-hamburger.active .bar:nth-child(1) { width: 24px !important; transform: translateY(7px) rotate(45deg); }
body.theme-basic .hb-hamburger.active .bar:nth-child(2) { width: 24px !important; transform: rotate(-45deg); }
body.theme-basic .hb-hamburger.active .bar:nth-child(3) { opacity: 0; }

@media (max-width: 1200px) {
    body.theme-basic .hb-inner { flex-wrap: wrap; gap: 8px 12px; padding: 0 16px; }
    body.theme-basic .hb-brand { font-size: 18px; min-height: 56px; }
    body.theme-basic .hb-inner { min-height: 56px; }
    body.theme-basic .hb-hamburger { display: flex; order: 2; margin-left: auto; }
    /* prihlásenie / používateľ sú v rozbaľovacom paneli pod menu (zobrazí ich otvorený .nav-list) */
    body.theme-basic .hb-auth { display: none; order: 5; width: 100%; margin: 0; padding: 4px 0 14px; justify-content: flex-start; flex-wrap: wrap; }
    body.theme-basic .hb .nav-list.show ~ .hb-auth { display: flex; }
    body.theme-basic .hb-user-name { max-width: 160px; }
    body.theme-basic .hb .nav-list {
        display: none; order: 4; flex-direction: column; align-items: stretch; width: 100%;
        margin: 0; padding: 6px 0 6px; border-top: 1px solid rgba(255,255,255,0.12);
    }
    body.theme-basic .hb .nav-list.show { display: flex; }
    body.theme-basic .hb .nav-item > a,
    body.theme-basic .hb .nav-item > span { min-height: 44px; padding: 0 4px; border-bottom: 0; border-left: 3px solid transparent; }
    body.theme-basic .hb .nav-item.active > a { border-left-color: var(--neon); padding-left: 10px; }
    body.theme-basic .hb .hb-lang .submenu-wrapper { position: static; max-height: none; background: transparent; box-shadow: none; }
    body.theme-basic .hb .submenu-item a { color: #d1d5db; padding: 6px 14px; }
}

/* ---------- obsah: bez veľkých okrajov plnej témy ---------- */
body.theme-basic .training-schedule { padding-top: 28px; }
body.theme-basic .main { min-height: calc(100vh - 64px - 160px); }

/* ---------- pätička ---------- */
body.theme-basic .fb { background: #111827; color: #d1d5db; margin-top: 48px; font-size: 14px; }
body.theme-basic .fb-inner {
    max-width: 1140px; margin: 0 auto; padding: 32px 20px 20px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; text-align: left;
}
body.theme-basic .fb p { margin: 0 0 4px; }
body.theme-basic .fb a { color: #e5e7eb; text-decoration: none; }
body.theme-basic .fb a:hover { color: #fff; text-decoration: underline; }
body.theme-basic .fb-name { color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
body.theme-basic .fb-heading { color: #9ca3af; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
body.theme-basic .fb-muted { color: #9ca3af; }
body.theme-basic .fb-links { display: flex; flex-direction: column; gap: 6px; }
body.theme-basic .fb-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 20px; text-align: center; font-size: 12px; color: #9ca3af; }
body.theme-basic .fb-bottom a { color: #9ca3af; }

/* ikony zoznam/mriežka v rozvrhu sú ružové obrázky plnej témy – posun odtieňa do akcentu */
body.theme-basic .view-wrapper img { filter: hue-rotate(245deg) saturate(0.9); }

/* ---------- úvod / podstránky: dvojstĺpcové rozloženie (obsah + bočné menu s oznamami, ako starý uniweb) ---------- */
body.theme-basic .bp-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}
body.theme-basic .bp-main { min-width: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px 32px 32px; }
body.theme-basic .bp-main .cms-page { max-width: none; padding: 0; }
body.theme-basic .bp-main .cms-page-title { font-size: 30px; }
body.theme-basic .bp-main .cms-page-header { margin-bottom: 20px; }
body.theme-basic .bp-main .cms-page-image { margin: -28px -32px 24px; }
body.theme-basic .bp-main .cms-page-image img { border-radius: 12px 12px 0 0; max-height: 320px; }
body.theme-basic .bp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #f3f4f6; }
body.theme-basic .bp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 0 18px;
    background: var(--neon); color: var(--neon-contrast, #fff); border: 2px solid var(--neon); border-radius: 8px;
    font-weight: 700; font-size: 14px; letter-spacing: 0.02em; text-decoration: none;
    transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}
body.theme-basic .bp-btn:hover { filter: brightness(1.1); color: var(--neon-contrast, #fff); }
body.theme-basic .bp-btn--ghost { background: transparent; color: var(--neon); }
body.theme-basic .bp-btn--ghost:hover { background: var(--neon); color: var(--neon-contrast, #fff); filter: none; }
body.theme-basic .bp-btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* bočný stĺpec – menu stránok s podstránkami */
body.theme-basic .bp-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
body.theme-basic .bp-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
body.theme-basic .bp-box-title { margin: 0; padding: 12px 16px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
body.theme-basic .bp-menu-list,
body.theme-basic .bp-submenu { list-style: none; margin: 0; padding: 0; }
body.theme-basic .bp-menu-list > li { border-bottom: 1px solid #f3f4f6; }
body.theme-basic .bp-menu-list > li:last-child { border-bottom: 0; }
body.theme-basic .bp-menu-list a {
    display: block; padding: 11px 16px; border-left: 3px solid transparent;
    color: #111827; font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
body.theme-basic .bp-menu-list a:hover { background: #f9fafb; color: var(--neon); }
body.theme-basic .bp-menu-list > li.active > a,
body.theme-basic .bp-menu-list > li.child-active > a { color: var(--neon); border-left-color: var(--neon); background: #f9fafb; }
body.theme-basic .bp-submenu { background: #fafafa; border-top: 1px solid #f3f4f6; padding: 4px 0; }
body.theme-basic .bp-submenu a { position: relative; padding: 8px 16px 8px 30px; font-size: 13px; font-weight: 500; color: #4b5563; }
body.theme-basic .bp-submenu a::before { content: ""; position: absolute; left: 17px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #d1d5db; transform: translateY(-50%); }
body.theme-basic .bp-submenu li.active > a { color: var(--neon); font-weight: 700; }
body.theme-basic .bp-submenu li.active > a::before { background: var(--neon); }

/* oznamy v bočnom stĺpci – vlastný vzhľad karty (notices.css plnej témy sa tu nenačítava) */
body.theme-basic .bp-notices .notice-card { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; }
body.theme-basic .bp-notices .notice-card:last-child { border-bottom: 0; }
body.theme-basic .bp-notices .notice-card-head { margin-bottom: 8px; }
body.theme-basic .bp-notices .notice-card-title { margin: 0 0 2px; font-size: 14px; font-weight: 700; line-height: 1.35; text-transform: none; }
body.theme-basic .bp-notices .notice-card-title a { color: #111827; text-decoration: none; }
body.theme-basic .bp-notices .notice-card-title a:hover { color: var(--neon); }
body.theme-basic .bp-notices .notice-card-date { margin: 0; font-size: 12px; color: #6b7280; }
body.theme-basic .bp-notices .notice-card-thumb { display: block; margin-bottom: 8px; }
body.theme-basic .bp-notices .notice-card-thumb img { display: block; width: 100%; height: auto; max-height: 160px; object-fit: cover; border-radius: 8px; }
body.theme-basic .bp-notices .notice-card-text { margin: 0; font-size: 13px; line-height: 1.55; color: #374151; }
body.theme-basic .bp-notices .notice-card-actions { margin-top: 8px; }
body.theme-basic .bp-notices .notice-card-btn { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neon); text-decoration: none; }
body.theme-basic .bp-notices .notice-card-btn:hover { text-decoration: underline; }
body.theme-basic .bp-empty { margin: 0; padding: 16px; font-size: 13px; color: #6b7280; }
body.theme-basic .bp-more { display: block; width: 100%; padding: 12px; background: #f9fafb; border: 0; border-top: 1px solid #e5e7eb; color: var(--neon); font-weight: 700; font-size: 13px; cursor: pointer; }
body.theme-basic .bp-more:hover { background: #f3f4f6; }
body.theme-basic .bp-more[hidden] { display: none; }
body.theme-basic .bp-more:disabled { opacity: 0.6; cursor: wait; }

/* slider bannerov na úvode */
body.theme-basic .bp-slider { position: relative; max-width: 1180px; margin: 24px auto 0; padding: 0 20px; }
body.theme-basic .bp-slides { position: relative; aspect-ratio: 21 / 8; max-height: 440px; overflow: hidden; border-radius: 12px; background: #e5e7eb; }
body.theme-basic .bp-slide { position: absolute; inset: 0; display: block; opacity: 0; color: #fff; text-decoration: none; transition: opacity 0.6s ease; }
body.theme-basic .bp-slide.is-active { opacity: 1; z-index: 1; }
body.theme-basic .bp-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.theme-basic .bp-slide-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 48px 28px 30px;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0));
}
body.theme-basic .bp-slide-title { font-size: 26px; font-weight: 800; line-height: 1.15; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
body.theme-basic .bp-slide-text { max-width: 640px; font-size: 15px; line-height: 1.45; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
body.theme-basic .bp-slide-caption .bp-btn { margin-top: 6px; }
body.theme-basic .bp-slider-nav {
    position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(17, 24, 39, 0.55); color: #fff; cursor: pointer;
    transition: background 0.15s ease;
}
body.theme-basic .bp-slider-nav:hover { background: var(--neon); color: var(--neon-contrast, #fff); }
body.theme-basic .bp-slider-nav svg { width: 22px; height: 22px; }
body.theme-basic .bp-slider-prev { left: 32px; }
body.theme-basic .bp-slider-next { right: 32px; }
body.theme-basic .bp-slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
body.theme-basic .bp-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
body.theme-basic .bp-dot.is-active { background: #fff; transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
    body.theme-basic .bp-slide { transition: none; }
}

@media (max-width: 900px) {
    body.theme-basic .bp-layout { grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 32px; }
    body.theme-basic .bp-main { padding: 20px 16px 24px; }
    body.theme-basic .bp-main .cms-page-title { font-size: 26px; }
    body.theme-basic .bp-main .cms-page-image { margin: -20px -16px 20px; }
    body.theme-basic .bp-slider { margin-top: 16px; padding: 0 16px; }
    body.theme-basic .bp-slides { aspect-ratio: 16 / 9; }
    body.theme-basic .bp-slide-caption { padding: 36px 16px 30px; gap: 4px; }
    body.theme-basic .bp-slide-title { font-size: 18px; }
    body.theme-basic .bp-slide-text { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    body.theme-basic .bp-slider-nav { width: 34px; height: 34px; margin-top: -17px; }
    body.theme-basic .bp-slider-prev { left: 24px; }
    body.theme-basic .bp-slider-next { right: 24px; }
    body.theme-basic .bp-slider-dots { bottom: 8px; }
}

/* globálne styles.css centruje text – obsah aj bočný panel sú zarovnané vľavo */
body.theme-basic .bp-main,
body.theme-basic .bp-side { text-align: left; }
body.theme-basic .bp-notices .notice-card { text-align: left; }
@media (max-width: 900px) {
    /* na mobile stačí swipe + bodky, šípky prekrývali nadpis */
    body.theme-basic .bp-slider-nav { display: none; }
}

/* ---------- rozvrh (PC): lišta filtrov + dní ako karta s vnútorným odsadením ----------
   Záporné okraje = obsah karty ostáva zarovnaný s dňami pod ňou; v úzkom okne (1024–1179 px)
   má rozvrh po stranách 20 px, aby karta nevytŕčala z okna. Mobil: .tr-toolbar je display: contents. */
@media (min-width: 1024px) {
    body.theme-basic .tr-toolbar {
        padding: 0 20px;
        margin-left: -20px;
        margin-right: -20px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
    }
    body.theme-basic .tr-toolbar.is-stuck {
        border-radius: 0 0 12px 12px;
        border-top-color: transparent;
    }
}
@media (min-width: 1024px) and (max-width: 1179px) {
    body.theme-basic .training-schedule { padding-left: 20px; padding-right: 20px; }
    /* karta siaha od okraja po okraj okna – bez zaoblenia a bočných rámikov */
    body.theme-basic .tr-toolbar,
    body.theme-basic .tr-toolbar.is-stuck { border-radius: 0; border-left: 0; border-right: 0; }
}

/* ---------- akcentová farba fitka (Admin › Nastavenia › Primárna farba → FitnessCenter::accentStyle()) ----------
   Tlačidlá plnej témy (.pf-btn – profil, kontaktný formulár) a focus tiene majú ružovú natvrdo – tu berú farbu fitka. */
body.theme-basic .pf-btn { background-color: var(--neon); color: var(--neon-contrast, #fff); }
body.theme-basic .pf-btn:hover:not(:disabled) { background-color: var(--neon-hover, var(--neon)); color: var(--neon-contrast, #fff); }
body.theme-basic .settings-field input:focus,
body.theme-basic .settings-field select:focus,
body.theme-basic .contact-form .settings-field textarea:focus { box-shadow: 0 0 0 3px rgba(var(--neon-rgb, 37, 99, 235), 0.15); }

/* kontaktný formulár „Napíšte nám“ v užšom stĺpci s bočným menu: tmavý úvod hore, formulár na celú šírku */
body.theme-basic .bp-main .contact-form-section { grid-template-columns: 1fr; margin: 28px 0 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
body.theme-basic .contact-form-aside { background: var(--dark); padding: 24px 28px; gap: 10px; }
body.theme-basic .contact-form-title { font-size: 28px; }
body.theme-basic .contact-form-aside-note { margin-top: 2px !important; }
body.theme-basic .bp-main .contact-form-main { padding: 24px 28px 28px; }
body.theme-basic .contact-form-submit { min-width: 180px; }
