﻿/* Proměnné a pozadí */
:root {
    --bg-banik: linear-gradient(90deg, #004d26, #2e7d32);
    --bg-banik-reverse: linear-gradient(270deg, #004d26, #2e7d32);
    --bg-banik-light: linear-gradient(90deg, #1b5e20, #388e3c);
    --bg-banik-light-reverse: linear-gradient(270deg, #1b5e20, #388e3c);
    --bg-banik-solid: #2e7d32;
    --color-banik: #004d26;
    --color-banik-rgb: 0, 77, 38;
    --color-banik-light: #1b5e20;
    --color-banik-dark: #006400;
    --match-win: #2e7d32;
    --match-loss: #8b1c1c;
    --header-height: 135px;
}

@media (max-width: 767.98px) {
    input,
    select,
    textarea,
    .form-control,
    .form-select,
    .form-control-sm,
    .form-select-sm {
        font-size: 16px;
    }
}

.bg-banik {
    background: var(--bg-banik) !important;
}

.bg-banik-reverse {
    background: var(--bg-banik-reverse) !important;
}

.bg-banik-light {
    background: var(--bg-banik-light) !important;
}

.bg-banik-light-reverse {
    background: var(--bg-banik-light-reverse) !important;
}

.bg-banik-solid {
    background-color: var(--bg-banik-solid) !important;
    color: #fff !important;
}

.text-banik {
    color: var(--color-banik) !important;
}
.pagination-banik {
    --bs-pagination-color: var(--color-banik);
    --bs-pagination-hover-color: var(--color-banik);
    --bs-pagination-focus-color: var(--color-banik);
    --bs-pagination-active-bg: var(--bg-banik-solid);
    --bs-pagination-active-border-color: var(--bg-banik-solid);
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--color-banik-rgb), .25);
}

    .pagination-banik .page-link:hover {
        background-color: rgba(var(--color-banik-rgb), .08);
    }

    .pagination-banik .page-item.active .page-link {
        color: #fff;
    }

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    height: 100%;
}

body {
    font-family: 'Mukta', sans-serif;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
}

    body.with-header {
        padding-top: var(--header-height);
        /*padding-top: 170px;*/
    }

    body.no-header {
        padding-top: 0;
    }

        body.no-header header {
            display: none !important;
        }

    body.no-partners .partners-section {
        display: none !important;
    }

    body.no-footer footer,
    body.no-footer .partners-section {
        display: none !important;
    }

main {
    flex: 1;
}

.table td.fit, .table th.fit {
    white-space: nowrap;
    width: 1%;
}

.facebook-column {
    flex: 0 0 500px;
    width: 500px;
    max-width: 100%;
    min-width: 180px;
}

    .facebook-column .fb-page {
        width: 500px;
        max-width: 100%;
    }

@media (max-width: 991.98px) {
    .facebook-column {
        flex: 0 0 100%;
        width: 100%;
    }
}

.article-category-badge {
    border-radius: 0 5px 0 0;
}

.section-title {
    font-weight: 800;
    text-transform: uppercase;
    padding-left: 15px;
    margin-bottom: 2rem;
}

.partner-logo {
    max-height: 50px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: 0.4s;
    object-fit: contain;
}

    .partner-logo:hover {
        filter: grayscale(0);
        opacity: 1;
        transform: scale(1.05);
    }

@media (max-width: 991.98px) {
    .partner-logo {
        filter: grayscale(0);
        opacity: 1;
    }
}

/* Tlačítka */
.btn-banik {
    background: var(--bg-banik) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

    .btn-banik:hover,
    .btn-banik:focus {
        background: var(--bg-banik-light) !important;
        color: #fff !important;
        transform: scale(1.02) !important;
    }

.btn-outline-banik {
    color: var(--color-banik-light) !important;
    border: 1px solid var(--color-banik-light) !important;
    background-color: transparent !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

    .btn-outline-banik:hover,
    .btn-outline-banik:focus {
        background: var(--bg-banik-light) !important;
        color: #fff !important;
        transform: scale(1.02) !important;
        border-color: var(--color-banik) !important;
    }

/*Sub bar*/
.subbar .banik-logo {
    height: 70px;
    margin-right: 15px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.subbar .banik-title {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.subbar .banik-subtitle {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.2;
}

.subbar .year-display {
    font-weight: 900;
    font-size: 2.5rem;
    font-family: 'Poppins', 'Arial', sans-serif;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4), 0 0 6px rgba(255,255,255,0.3);
    line-height: 1;
}

@media (max-width: 768px) {
    .subbar .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .subbar .year-display {
        font-size: 2rem;
        text-align: left;
    }
}


/* Navbar */
.navbar-brand img {
    height: 80px !important;
    margin-right: 10px !important;
}

.navbar .banik-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar .banik-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.navbar .banik-subtitle {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
}

.navbar-brand span {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.navbar-nav .nav-link {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease-in-out !important;
}

    .navbar-nav .nav-link.dropdown-toggle {
        cursor: pointer !important;
    }

    .navbar-nav .nav-link:hover {
        color: #fff !important;
        /*background-color: #006400 !important;*/
        border-radius: 4px !important;
        opacity: 0.7;
    }

.navbar .dropdown-menu {
    background: var(--bg-banik-light) !important;
    border: none !important;
}

    .navbar .dropdown-menu .dropdown-item {
        color: #fff !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        transition: background-color 0.2s ease-in-out !important;
        padding: 0.75rem 1rem !important;
        line-height: 1.4 !important;
    }

        .navbar .dropdown-menu .dropdown-item:hover {
            background-color: var(--color-banik-dark) !important;
            color: #fff !important;
        }

.offcanvas .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0;
}

.offcanvas .dropdown-item {
    color: #fff;
}

@media (max-width: 991.98px) {
    .mobile-menu {
        background: var(--bg-banik) !important;
        max-width: 250px !important;
    }

    .navbar .mobile-menu .dropdown-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        background: var(--bg-banik-light) !important;
        border: none !important;
    }

    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Login */
.login .dropdown-item:active,
.login .dropdown-item:focus {
    background-color: transparent !important;
    color: inherit !important;
}

/* Karty */
.card {
    border: 1px solid #ccc !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.card-title a {
    color: var(--bg-banik-solid) !important;
    transition: color 0.2s ease !important;
}

    .card-title a:hover {
        color: var(--color-banik-dark) !important;
        text-decoration: none !important;
    }

.card-text {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

/* Sub navigace */
.sub-nav .nav-pills .nav-link.active {
    background: var(--bg-banik) !important;
    color: #fff !important;
}

.sub-nav .nav-pills .nav-link:not(.active):hover {
    background: rgba(var(--color-banik-rgb), 0.2) !important;
}

.dropdown-menu {
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

    .dropdown-menu.show {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

footer p {
    font-size: 0.85rem !important;
    margin: 0 !important;
}

select option:hover {
    background-color: #198754 !important;
    color: #fff !important;
}


/* Focus efekty */
.btn-success:focus,
.btn-success:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #66bb6a !important;
}

.btn-danger:focus,
.btn-danger:active:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #dc3545 !important;
}

.btn-secondary:focus,
.btn-secondary:active:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #6c757d !important;
}


.form-check-input:checked {
    background-color: #66bb6a !important;
    border-color: #66bb6a !important;
}

/* SweetAlert */
.swal-banik-popup {
    font-family: 'Mukta', sans-serif;
    font-weight: 500;
    border-radius: 0.375rem !important;
    padding: 2rem !important;
}

.swal-banik-input {
    border: 1px solid #66bb6a !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem !important;
    color: #004d26 !important;
    font-size: 1rem !important;
    background-color: #f9f9f9 !important;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    /*margin: 1rem auto;*/
    aspect-ratio: 16 / 9;
}

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }


/* Nepřečtené zprávy */
.notification-unread {
    font-weight: 600;
    border-left: 4px solid #198754;
    background-color: rgba(25, 135, 84, 0.08);
}

.notification-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
}

    .notification-dropdown-footer a {
        color: #495057;
        font-size: .82rem;
        text-decoration: none;
        white-space: nowrap;
    }

        .notification-dropdown-footer a:hover {
            color: var(--color-banik);
        }

.notification-settings-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .notification-settings-link i {
        font-size: .8rem;
        opacity: .7;
    }


/* Hráči */
.player {
    position: relative;
}

    .player img {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
        border-radius: 50%;
        object-fit: cover;
        object-position: center;
        margin-bottom: 20px;
    }

    .player .team-number {
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .player h2 {
        font-size: 20px;
        letter-spacing: .2em;
        text-transform: uppercase;
    }

    .player .position {
        font-size: 14px;
        color: #b3b3b3;
        text-transform: uppercase;
    }


/* Náhledy */
.image-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 10px auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .image-thumb .delete-btn {
        position: absolute;
        top: 0;
        left: 0;
        width: 28px;
        height: 28px;
        border: none;
        border-radius: 50%;
        background: #f23a2e;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .image-thumb .delete-btn:hover {
            background: #c62820;
        }


/* Messenger */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background 0.15s;
    position: relative;
}

    .chat-item:hover {
        background: #f7f7f7;
    }

    .chat-item.unread {
        background: #e8f0ff;
        font-weight: 600;
    }

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

    .chat-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .chat-avatar i {
        font-size: 24px;
        color: #6c757d;
    }

.chat-avatar2 {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

    .chat-avatar2 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .chat-avatar2 i {
        font-size: 17.5px;
        color: #6c757d;
    }


.chat-body {
    flex-grow: 1;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-name {
    font-weight: 600;
    font-size: 15px;
}

.chat-time {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.chat-preview {
    font-size: 14px;
    color: #555;
    margin-top: 2px;
}

.chat-unread-badge {
    width: 10px;
    height: 10px;
    background: #007bff;
    border-radius: 50%;
    margin-left: 10px;
}

.chat-read-icon {
    font-size: 13px;
}

    .chat-read-icon.text-primary {
        color: #0b93f6 !important;
    }

.thread-menu {
    cursor: pointer;
    font-size: 1.4rem;
    padding: 4px 8px;
}

    .thread-menu:hover {
        background: #f1f1f1;
        border-radius: 6px;
    }

.dropdown-danger {
    color: #dc3545 !important;
}

    .dropdown-danger:hover {
        background-color: rgba(220, 53, 69, 0.12) !important;
        color: #dc3545 !important;
    }

/* Layout stránky s chatem */
.chat-page-layout {
    display: flex;
    flex-direction: column;
}

    .chat-page-layout .chat-card {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .chat-page-layout .chat-container {
        flex-grow: 1;
        overflow-y: auto;
        max-height: none !important;
        position: relative;
    }

.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    position: relative;
}

    .chat-bubble.mine {
        background: #e3f2fd;
        border: 1px solid #cfe0f5;
    }

    .chat-bubble.deleted {
        background: #f1f1f1;
        color: #999;
        font-style: italic;
    }

.chat-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    text-align: right;
}

.msg-delete-btn {
    position: absolute;
    bottom: -12px;
    right: -18px;
    background: white;
    border-radius: 50%;
    padding: 3px 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 0.8rem;
    color: #dc3545;
}

    .msg-delete-btn:hover {
        background: #f8d7da;
    }



/* Zápasy */
.matches .match-card {
    position: relative;
    -webkit-transition: .2s all ease-in-out;
    -o-transition: .2s all ease-in-out;
    transition: .2s all ease-in-out;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .matches .match-card:hover {
        -webkit-transform: scale(1.02);
        -ms-transform: scale(1.02);
        transform: scale(1.02);
        z-index: 90;
        -webkit-box-shadow: 0 5px 40px -5px rgba(0, 0, 0, 0.1);
        box-shadow: 0 5px 40px -5px rgba(0, 0, 0, 0.1);
    }

.matches-card .dropdown-item:active,
.matches-card .dropdown-item:focus {
    background-color: transparent !important;
    color: inherit !important;
}

@media (max-width: 991.98px) {
    .matches .image {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.matches .image img {
    border-radius: 50%;
}

.matches .image.image-small {
    width: 50px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
}

.matches .match-badge {
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: .5rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .15em;
    border-radius: 6px;
    background: #f1f1f1;
    color: #222;
}

.matches .match-win {
    background: var(--match-win);
    color: #fff;
}

.matches .match-loss {
    background: var(--match-loss);
    color: #fff;
}

.matches .match-draw {
    background: transparent;
    color: #444;
    border: 2px solid rgba(0,0,0,.25);
}

.match-filter-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: nowrap;
}

.match-type-switch {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem;
    background: #f1f3f2;
    border-radius: 999px;
    flex: 0 0 auto;
    width: auto;
}

.match-type-option {
    border: 0;
    background: transparent;
    color: #4a4a4a;
    font-weight: 600;
    padding: .45rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

    .match-type-option.active {
        background: var(--bg-banik);
        color: #fff;
    }

.match-season-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

.match-season-filter {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
}

.match-search {
    width: 100%;
}

@media (min-width: 768px) {
    .match-search {
        width: 260px;
    }
}



/* Karty s taby */
.site-tabs .nav-item {
    margin: 0 15px;
}

    .site-tabs .nav-item:first-child {
        margin-left: 0 !important;
    }

    .site-tabs .nav-item > a {
        padding-left: 0 !important;
        background: none !important;
        padding-right: 0 !important;
        border-bottom: 2px solid transparent;
        border-radius: 0 !important;
        font-weight: bold;
        color: #919191;
    }

        .site-tabs .nav-item > a:hover, .site-tabs .nav-item > a.active:not(.external-link) {
            border-bottom: 3px solid var(--color-banik-light);
            color: #000;
        }


/* Hero sekce */

.hero-lastmatch {
    background: rgba(0, 0, 0, 0.35);
    padding: 25px 10px;
    border-radius: 14px;
    backdrop-filter: blur(4px);
    display: inline-block;
    /*box-shadow: 0 6px 24px rgba(0,0,0,0.45);*/
}

    .hero-lastmatch .category-title {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .hero-lastmatch img {
        max-height: 40px;
        filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4)) drop-shadow(0 0 4px rgba(46, 125, 50, 0.35));
    }

.hero-lastmatch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.hero-lastmatch-team {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .hero-lastmatch-team img {
        max-width: 50px;
        max-height: 50px;
        object-fit: contain;
    }

    .hero-lastmatch-team span {
        max-width: 150px;
    }

.hero-lastmatch-score {
    text-align: center;
    white-space: nowrap;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    text-decoration: none;
    background: #fff;
    color: #212529;
    max-width: 500px;
    margin: 0 auto;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .category-card i {
        color: #198754;
    }

    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
        border-color: #198754;
    }

.category-name {
    font-weight: 600;
}

/* HLAVIČKA KATEGORIE */

.category-header {
    margin-bottom: 1.5rem;
}

.category-breadcrumb .breadcrumb {
    margin-bottom: .75rem;
}


/* Název vlevo + realizační tým vpravo */

.category-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.category-title {
    flex-shrink: 0;
    margin-bottom: 0;
}


/* REALIZAČNÍ TÝM */

.category-staff {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .05);
}

/*.category-staff-group {
    min-width: 140px;
}*/

.category-staff-role {
    margin-bottom: .4rem;
    color: #7a7a7a;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.category-staff-person {
    min-width: 0;
    margin-bottom: .5rem;
}

    .category-staff-person:last-child {
        margin-bottom: 0;
    }

.category-staff-name {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.category-staff-phone {
    display: block;
    margin-top: .3rem;
    color: #777;
    font-size: .78rem;
    line-height: 1.2;
    text-decoration: none;
}
.category-staff-phone {
    white-space: nowrap;
}

    .category-staff-phone:hover {
        color: var(--color-banik);
    }


/* MOBIL */

@media (max-width: 767.98px) {

    .category-header {
        margin-bottom: 1rem;
    }

    .category-breadcrumb .breadcrumb {
        margin-bottom: .75rem;
    }

    .category-header-row {
        display: block;
    }

    .category-title {
        margin-bottom: 1rem;
    }

    .category-staff {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        padding: .9rem 1rem;
        gap: 1rem;
        width: 100%;
    }

    .category-staff-group {
        min-width: 0;
    }

    .category-staff-role {
        font-size: .85rem;
        font-weight: 600;
    }

    .category-staff-name {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.25;
    }

    .category-staff-phone {
        display: block;
        margin-top: .4rem;
        font-size: .9rem;
    }
    .category-staff-phone {
        white-space: nowrap;
    }
}


.tournament-sticky {
    top: var(--header-height);
}

/* Přepínač webů */
.site-switcher {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.site-switcher-link {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: .55;
    transform: scale(.9);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

    .site-switcher-link:hover,
    .site-switcher-link:focus-visible {
        opacity: 1;
        transform: scale(1);
        background: rgba(255, 255, 255, .12);
    }

    .site-switcher-link.active {
        opacity: 1;
        transform: scale(1);
        background: rgba(255, 255, 255, .22);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
    }

.site-switcher-logo {
    width: 27px;
    height: 27px;
    object-fit: contain;
}


#logoutForm {
    margin: 0;
}

@media (max-width: 575.98px) {
    .login-bar {
        gap: .65rem !important;
    }

    .site-switcher {
        gap: .4rem;
        padding: .3rem .4rem;
    }

    .site-switcher-link {
        width: 26px;
        height: 26px;
    }

    .site-switcher-logo {
        width: 24px;
        height: 24px;
    }

    .login-links {
        gap: .65rem !important;
    }

        .login-links a {
            font-size: .9rem;
        }
}

.gallery-card {
    transition: transform .18s, box-shadow .18s;
}

    .gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }

.gallery-hero {
    min-height: 180px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden
}

    .gallery-hero img.object-fit-cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.gallery-badge {
    top: 10px;
    left: 10px;
    opacity: 0.95
}

.gallery-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px
}

.gallery-overlay-inner {
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.55);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end
}

.gallery-hero > a.d-block {
    display: block;
    height: 100%;
}

.gallery-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
    .gallery-thumbnail:hover {
        transform: scale(1.04);
    }

.card .card-body {
    position: relative;
    z-index: 2;
}

@media (max-width:576px) {
    .gallery-hero {
        min-height: 130px
    }

    .gallery-overlay-inner {
        padding: 0.5rem
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform .18s, box-shadow .18s;
}

    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

.profile-avatar {
    width: 20px;
    height: 20px;
    object-fit: cover;
    vertical-align: text-bottom;
}

.dropdown-submenu {
    position: relative;
}

@media (min-width: 992px) {
    .submenu-categories-menu {
        width: max-content;
        min-width: 210px;
        border-radius: .375rem 0 0 .375rem !important;
    }

    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu > .submenu-toggle {
            display: flex !important;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            min-width: 210px;
            padding-right: 1rem !important;
            white-space: nowrap;
        }

            .dropdown-submenu > .submenu-toggle::after {
                content: "";
                position: static;
                flex: 0 0 auto;
                width: 0;
                height: 0;
                margin: 0;
                border-top: .3em solid transparent;
                border-bottom: .3em solid transparent;
                border-left: .3em solid currentColor;
                border-right: 0;
            }

        .dropdown-submenu > .submenu {
            position: absolute !important;
            top: 0 !important;
            left: 100% !important;
            display: none;
            width: max-content;
            min-width: 170px;
            margin: 0 !important;
            padding-left: 0;
            opacity: 0 !important;
            visibility: hidden;
            transform: none !important;
            z-index: 1100;
            border-radius: 0 .375rem .375rem 0 !important;
        }

        .dropdown-submenu:hover > .submenu,
        .dropdown-submenu:focus-within > .submenu {
            display: block !important;
            opacity: 1 !important;
            visibility: visible;
            transform: none !important;
        }
}

@media (max-width: 991.98px) {
    .dropdown-submenu > .submenu-toggle {
        position: relative;
        padding-right: 2rem !important;
    }

        .dropdown-submenu > .submenu-toggle::after {
            content: "";
            position: absolute;
            top: 50%;
            right: .8rem;
            width: 0;
            height: 0;
            margin: 0;
            transform: translateY(-50%);
            border-right: .3em solid transparent;
            border-left: .3em solid transparent;
            border-top: .3em solid currentColor;
        }

    .dropdown-submenu > .submenu {
        position: static !important;
        display: block;
        width: 100%;
        min-width: 100%;
        margin: 0 !important;
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0 !important;
        visibility: hidden;
        transform: none !important;
        transition: max-height .25s ease, opacity .2s ease, visibility .2s ease;
    }

        .dropdown-submenu > .submenu.show {
            max-height: 250px;
            opacity: 1 !important;
            visibility: visible;
        }

    .offcanvas .submenu-toggle,
    .offcanvas .submenu-toggle:hover,
    .offcanvas .submenu-toggle:focus,
    .offcanvas .submenu-toggle:active {
        background: transparent !important;
        color: #fff !important;
        box-shadow: none !important;
        outline: none !important;
    }
}

.season-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-banik);
    font-weight: 700;
    text-transform: uppercase;
}

    .season-divider::before,
    .season-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(var(--color-banik-rgb), .35);
    }

    .season-divider span {
        white-space: nowrap;
    }

.recipient-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.recipient-avatar-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
}

.partners-text {
    margin-bottom: 0.5rem;
    padding: .25rem 0 .25rem 1.25rem;
    border-left: 3px solid var(--bg-banik-solid);
    line-height: 1.65;
    max-width: 1100px;
}

    .partners-text p:last-child {
        margin-bottom: 0;
    }

.match-detail-link {
    left: calc(50% + 45px);
    color: var(--bg-banik);
    font-size: .9rem;
    text-decoration: none;
    opacity: .75;
}

.match-upcoming-detail-link {
    left: calc(50% + 30px);
    color: var(--bg-banik);
    font-size: .9rem;
    text-decoration: none;
    opacity: .75;
}

    .match-detail-link:hover {
        color: var(--bg-banik);
        opacity: 1;
    }

.match-admin-edit {
    color: #adb5bd;
    font-size: .8rem;
    text-decoration: none;
}

    .match-admin-edit:hover {
        color: var(--bg-banik);
    }


.person-header {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.person-profile-image {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    border-radius: 50%;
    object-fit: cover;
}

.person-profile-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #adb5bd;
    font-size: 2rem;
}

.person-contact {
    font-size: .9rem;
}

    .person-contact a {
        color: #6c757d;
    }

        .person-contact a:hover {
            color: var(--bg-banik);
        }

.person-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .75rem;
    margin-top: .4rem;
    border-radius: .4rem;
    background: #f8f9fa;
    color: #212529;
    text-decoration: none;
}

    .person-role-item:hover {
        color: var(--bg-banik);
        background: #f1f3f5;
    }

    .person-role-item i {
        font-size: .7rem;
        color: #adb5bd;
    }

.person-assistant-item {
    padding: .65rem .75rem;
    margin-top: .4rem;
    border-radius: .4rem;
    background: #f8f9fa;
}



/*DETAIL ZAPASU*/

.match-detail-header {
    padding: 2rem 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.match-detail-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.match-detail-team {
    font-size: 1.1rem;
    font-weight: 600;
}

.match-detail-date {
    font-size: .85rem;
    font-weight: 600;
    color: #6c757d;
}

.match-detail-time {
    margin-top: .15rem;
    font-size: .8rem;
    color: #adb5bd;
}

.match-detail-score {
    margin-top: .5rem;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 700;
    color: var(--bg-banik);
}


/* události */

.match-event {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 0;
}

.match-minute {
    min-width: 30px;
    font-weight: 700;
    color: var(--bg-banik);
}


/* sestavy */

.match-lineup > div:not(.match-lineup-divider) {
    padding: .45rem .25rem;
    border-bottom: 1px solid #eee;
}

.match-lineup > div:last-child {
    border-bottom: 0;
}

.match-lineup-divider {
    margin: .65rem 0;
    border-top: 1px dashed #adb5bd;
}

.match-lineup-substitute {
    color: #6c757d;
}

.match-substitution {
    display: block;
    margin-top: .15rem;
    color: #6c757d;
    font-size: .78rem;
}

    .match-substitution i {
        margin-right: .25rem;
        font-size: .7rem;
    }


/* karty */

.match-card-event {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
}

.football-card {
    display: inline-block;
    width: 11px;
    height: 16px;
    flex: 0 0 11px;
    border-radius: 1px;
}

.football-card-yellow {
    background: #ffc107;
}

.football-card-red {
    background: #dc3545;
}


/* komentáře */

.match-comment {
    line-height: 1.65;
}


/* informace */

.match-info-label {
    margin-bottom: .25rem;
    color: #6c757d;
    font-size: .78rem;
}

.match-info-value {
    font-weight: 600;
}

.match-detail-playground {
    margin-top: .65rem;
    color: #6c757d;
    font-size: .85rem;
    font-weight: 500;
}

    .match-detail-playground i {
        color: var(--bg-banik);
    }


@media (max-width: 575.98px) {
    .match-detail-header {
        padding: 1.25rem .5rem;
    }

    .match-detail-logo {
        width: 58px;
        height: 58px;
    }

    .match-detail-team {
        font-size: .8rem;
        line-height: 1.2;
    }

    .match-detail-date {
        font-size: .75rem;
    }

    .match-detail-time {
        font-size: .75rem;
    }

    .match-detail-score {
        font-size: 1.8rem;
    }
    .match-detail-playground {
        margin-top: .5rem;
        font-size: .7rem;
        line-height: 1.2;
    }
}

.category-tab-loading {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}


#imageProcessingProgress .progress {
    background: #e7ece9;
    border-radius: 20px;
    overflow: hidden;
}

#imageProcessingProgress .progress-bar {
    border-radius: 20px;
    transition: width .15s ease;
}

#imageProcessingPercent {
    color: var(--color-banik);
    font-variant-numeric: tabular-nums;
}

/* Notifikace a zprávy v horní liště */

.header-dropdown-menu {
    width: 350px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

    .header-dropdown-menu .dropdown-item {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .header-dropdown-menu .text-truncate {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Mobil */
@media (max-width: 575.98px) {

    .header-dropdown-menu {
        position: fixed !important;
        top: 55px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        max-height: min(70vh, 450px);
        transform: none !important;
        z-index: 1100;
    }

        .header-dropdown-menu.show {
            transform: none !important;
        }
}



/* ==========================================
   TRÉNINKY - PŘEHLED ROZVRHŮ
   ========================================== */

.training-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ==========================================
   KATEGORIE
   ========================================== */

.training-category {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
}

.training-category-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
}

/* Vlastní tlačítko bez Bootstrap accordion-button */
.training-category-header {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 18px 22px;
    border: none;
    border-radius: 0;
    background: var( --bg-banik, linear-gradient(90deg, #004d26, #2e7d32) );
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    cursor: pointer;
    transition: filter .2s ease;
}

    .training-category-header:hover {
        filter: brightness(1.10);
    }

    .training-category-header:focus {
        box-shadow: none;
    }

    .training-category-header:focus-visible {
        outline: 3px solid #8bc34a;
        outline-offset: -3px;
    }

    /* Žádná automatická Bootstrap šipka */
    .training-category-header::before,
    .training-category-header::after {
        content: none !important;
        display: none !important;
    }

/* Obsah hlavičky */
.training-category-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.training-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    font-size: 1.35rem;
    color: #fff;
    opacity: .9;
}

.training-category-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.training-category-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.training-category-counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

/* ==========================================
   ŠIPKA ROZBALOVÁNÍ
   ========================================== */

.training-chevron {
    display: inline-block;
    flex-shrink: 0;
    margin-left: auto;
    font-size: 1rem;
    color: #fff;
    transform: rotate(0deg);
    transition: transform .25s ease;
}

/* Sbaleno - šipka dolů */
.training-category-header.collapsed .training-chevron {
    transform: rotate(0deg);
}

/* Rozbaleno - šipka nahoru */
.training-category-header:not(.collapsed) .training-chevron {
    transform: rotate(180deg);
}

/* ==========================================
   POČTY ROZVRHŮ
   ========================================== */

.training-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.training-count-active {
    background: #d9f0df;
    color: #166534;
}

.training-count-future {
    background: #e8f0fb;
    color: #285a87;
}

.training-count-old {
    background: #e8e8e8;
    color: #555;
}

/* ==========================================
   OBSAH KATEGORIE
   ========================================== */

.training-category-body {
    background: var(--bs-tertiary-bg);
    padding: 18px;
}

/* ==========================================
   JEDNOTLIVÉ ROZVRHY
   ========================================== */

.training-schedule {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid #aaa;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .035);
}

    .training-schedule:last-child {
        margin-bottom: 0;
    }

/* Aktuální */
.training-schedule-active {
    border-left-color: var(--bg-banik-solid, #2e7d32);
}

/* Budoucí */
.training-schedule-future {
    border-left-color: #658ba8;
}

/* Ukončený */
.training-schedule-old {
    border-left-color: #999;
    opacity: .82;
}

/* ==========================================
   HLAVIČKA ROZVRHU
   ========================================== */

.training-schedule-header {
    padding: 14px 17px;
    background: var(--bs-secondary-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.training-schedule-date {
    font-size: .95rem;
}

/* ==========================================
   STAV ROZVRHU
   ========================================== */

.training-status {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
    font-size: .75rem;
    font-weight: 600;
}

    .training-status i {
        font-size: .45rem;
    }

.training-status-active {
    color: #2e7d32;
}

.training-status-future {
    color: #658ba8;
}

.training-status-old {
    color: var(--bs-secondary-color);
}

/* ==========================================
   TABULKA
   ========================================== */

.training-table {
    font-size: .9rem;
}

    .training-table thead th {
        background: var(--bs-tertiary-bg);
        color: var(--bs-secondary-color);
        font-size: .78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .025em;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .training-table td,
    .training-table th {
        padding: 11px 15px;
    }

/* ==========================================
   MOBILNÍ ZOBRAZENÍ
   ========================================== */

@media (max-width: 576px) {

    .training-category-header {
        padding: 14px 13px;
        gap: 10px;
    }

    .training-category-content {
        gap: 10px;
    }

    .training-category-icon {
        width: 22px;
        font-size: 1.1rem;
    }

    .training-category-name {
        font-size: 1rem;
    }

    .training-category-counts {
        gap: 5px;
    }

    .training-count {
        font-size: .7rem;
        padding: 4px 7px;
    }

    .training-chevron {
        font-size: .9rem;
    }

    .training-category-body {
        padding: 10px;
    }

    .training-schedule-header {
        padding: 12px;
    }

    .training-table {
        font-size: .82rem;
    }

        .training-table td,
        .training-table th {
            padding: 9px 10px;
        }
}