@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
header {
    background: white;
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -20px;
}

.logo-section img {
    height: 70px;
    display: block;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e30613, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-nav {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    display: block;
}

nav a,
.desktop-nav a,
.mobile-nav > a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active,
.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav > a:hover,
.mobile-nav > a.active {
    color: #e30613;
    border-bottom-color: #1e40af;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after,
.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-toggle:hover,
.dropdown:hover .dropdown-toggle,
.dropdown.active .dropdown-toggle {
    color: #e30613;
    border-bottom-color: #1e40af;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    margin-top: 0.5rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown.show-menu .dropdown-menu {
    display: block;
    opacity: 1;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: #f8f9fa;
    color: #e30613;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Hero Slider with Wave Animation */
.hero-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(45deg, #1e40af, #3b82f6, #e30613, #ff4757, #1e40af);
    background-size: 400% 400%;
    animation: waveGradient 15s ease infinite;
}

@keyframes waveGradient {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 75%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 25%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #e30613, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.section-header .underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e30613, #1e40af);
    margin: 0 auto;
}

/* Month Sections */
.month-section {
    margin-bottom: 2rem;
}

.month-header {
    background: linear-gradient(135deg, #e30613, #1e40af);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .month-header:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 20px rgba(30, 64, 175, 0.3);
    }
}

.month-header .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.month-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.month-events {
    margin-top: 1rem;
    display: none;
}

.month-events.show {
    display: block;
}

/* Event Items */
.event-item {
    background: white;
    border-left: 4px solid #1e40af;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Event type colors */
.event-item.type-competition {
    border-left-color: #1e40af; /* Blue for Competition */
}

.event-item.type-camp {
    border-left-color: #059669; /* Green for Camp */
}

.event-item.type-education {
    border-left-color: #ea580c; /* Orange for Education */
}

.event-item.type-committee {
    border-left-color: #e30613; /* Red for Committee */
}

.event-item.type-other {
    border-left-color: #64748b; /* Slate for Other */
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.2);
}

.event-item.orbv-event::after {
    content: "";
    background-image: url('./image/orbv_logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70px 70px;
    opacity: 0.25;
    position: absolute;
    top: 50%;
    right: 20px;
    width: 70px;
    height: 70px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}


.event-item.csar-event::after {
    content: "";
    background-image: url('./image/csar_logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60px 60px;
    opacity: 0.25;
    position: absolute;
    top: 50%;
    right: 20px;
    width: 60px;
    height: 60px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.event-item.hrrs-event::after {
    content: "";
    background-image: url('./image/hrrs_logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60px 60px;
    opacity: 0.25;
    position: absolute;
    top: 50%;
    right: 20px;
    width: 60px;
    height: 60px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}


.event-item.wrrc-event::after {
    content: "";
    background-image: url('./image/wrrc_logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70px 70px;
    opacity: 0.25;
    position: absolute;
    top: 50%;
    right: 20px;
    width: 70px;
    height: 70px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.event-item.szts-event::after {
    content: "";
    background-image: url('./image/szts_logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60px 60px;
    opacity: 0.25;
    position: absolute;
    top: 50%;
    right: 20px;
    width: 60px;
    height: 60px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.event-main-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.event-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e40af;
}

.event-name a {
    color: #1e40af;
    text-decoration: none;
}

.event-name a:hover {
    color: #e30613;
    text-decoration: underline;
}

.event-separator {
    color: #999;
    font-weight: 700;
}

.event-place {
    color: #666;
    font-weight: 600;
}

.event-date {
    color: #666;
    font-weight: 600;
}

.event-description {
    color: #555;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Results List */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    background: white;
    border-left: 4px solid #1e40af;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.result-item > a:first-child {
    flex: 1;
}

.attachment-link {
    padding: 0.3rem 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.2s;
}


.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.2);
    border-left-color: #e30613;
}

.result-item a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-item a:hover {
    color: #e30613;
    text-decoration: underline;
}

/* Iframe Container */
.iframe-wrapper {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.iframe-wrapper iframe {
    width: 100%;
    min-height: 3500px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

/* Dark mode for history page */
.history-wrapper {
    margin: 2rem 0;
}

.filter-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-links a {
    text-decoration: none;
    color: #1e40af;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e0e0e0;
}

.filter-links a:hover {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
    transform: translateY(-2px);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.history-table thead {
    background: linear-gradient(135deg, #e30613, #1e40af);
    color: white;
}

.history-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    user-select: none;
}

.history-table th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    font-size: 0.9rem;
}

.history-table tbody tr {
    transition: background 0.2s ease;
}

.history-table tbody tr:hover {
    background: #f8f9fa;
}

.sort-icon {
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.note {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    font-size: 0.85rem;
}

.note a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.note a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    background: linear-gradient(135deg, #e30613, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1e40af;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

.loading, .error {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
}

.error {
    color: #e30613;
}

/* Responsive */
@media (max-width: 968px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .hero-slider {
        display: none;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .mobile-nav.active {
        display: flex;
    }

    .mobile-nav > a {
        padding: 1rem 2rem 1rem 2rem;
        border-bottom: 1px solid #e0e0e0;
        display: block;
        text-align: left;
        border-left: none;
        width: 100%;
    }

    .mobile-dropdown {
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
    }

    .mobile-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        cursor: pointer;
        color: #333;
        font-weight: 600;
        text-align: left;
        width: 100%;
    }

    .mobile-dropdown-toggle span:first-child {
        flex: 1;
        text-align: left;
    }

    .mobile-plus {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .mobile-plus::before {
        content: '▼';
    }

    .mobile-dropdown.active .mobile-plus {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        display: none;
        background: #f8f9fa;
    }

    .mobile-dropdown.active .mobile-dropdown-menu {
        display: block;
    }

    .mobile-dropdown-menu a {
        display: block;
        padding: 0.75rem 2rem 0.75rem 3rem;
        color: #333;
        text-decoration: none;
        font-weight: 600;
        border-bottom: none;
        text-align: left;
        border-left: none;
        width: 100%;
    }

    .mobile-dropdown-menu a:hover {
        color: #e30613;
        background: #e8e9ea;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-slider {
        height: 250px;
    }

    .event-main-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .event-separator {
        display: none;
    }

    .filter-links {
        justify-content: center;
    }

    .filter-row {
        justify-content: center;
    }

    .history-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* Submenu styles */
.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submenu-toggle:hover {
    background: #f8f9fa;
    color: #e30613;
}

.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    z-index: 1001;
}

.dropdown-submenu:hover .submenu-content {
    display: block;
}

.submenu-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submenu-content a:hover {
    background: #f8f9fa;
    color: #e30613;
}

/* Decade sections */
.decade-section {
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.decade-section:first-child {
    border-top: none;
    padding-top: 0;
}

.decade-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e30613, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Mobile nested dropdown */
.mobile-dropdown-nested {
    background: #f8f9fa;
}

.mobile-nested-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem 0.75rem 3rem;
    cursor: pointer;
    color: #333;
    font-weight: 600;
}

.mobile-plus-nested::before {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown-nested.active .mobile-plus-nested {
    transform: rotate(180deg);
}

.mobile-nested-menu {
    display: none;
    background: #e8e9ea;
}

.mobile-dropdown-nested.active .mobile-nested-menu {
    display: block;
}

.mobile-nested-menu a {
    display: block;
    padding: 0.75rem 2rem 0.75rem 4rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.mobile-nested-menu a:hover {
    color: #e30613;
    background: #d8d9da;
}
/* ... (pôvodný obsah styles.css ostáva nezmenený, tento kód pridaj na úplný koniec súboru) ... */

/* Archive Grid System */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Úprava existujúcej triedy len vo vnútri gridu */
.archive-grid .result-item {
    margin-bottom: 0; /* Marginy rieši grid gap */
    height: 100%;     /* Aby boli všetky kartičky rovnako vysoké */
    display: flex;
    align-items: center;
}

/* Responsivita pre grid */
@media (max-width: 992px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 stĺpce na tabletoch */
    }
}

@media (max-width: 600px) {
    .archive-grid {
        grid-template-columns: 1fr; /* 1 stĺpec na mobiloch */
    }
}

/* ── Champs page ── */
.champions-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}
.search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.search-wrap::before {
    content: '🔍';
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
}
.search-wrap input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: #1e40af; }
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.filter-group select {
    padding: 0.6rem 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #333;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.filter-group select:focus { border-color: #1e40af; }
.results-count { font-size: 0.85rem; color: #777; white-space: nowrap; }
.champions-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.champions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.93rem;
}
.champions-table thead {
    background: linear-gradient(135deg, #e30613, #1e40af);
    color: white;
}
.champions-table th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}
.champions-table th:hover { background: rgba(255,255,255,0.12); }
.champions-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.champions-table tbody tr:last-child td { border-bottom: none; }
.champions-table tbody tr:hover { background: #f4f6fb; }
.cell-rok {
    font-weight: 800;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #e30613, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.badge-kategoria {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.badge-Deti        { background: #bfdbfe; color: #1e3a8a; }
.badge-Ziaci       { background: #93c5fd; color: #1e3a8a; }
.badge-DuoChildren { background: #dbeafe; color: #1d4ed8; }
.badge-MDFD        { background: #e0f2fe; color: #0369a1; }
.badge-Junior      { background: #bbf7d0; color: #14532d; }
.badge-DuoGirls    { background: #d1fae5; color: #065f46; }
.badge-DFD         { background: #a7f3d0; color: #065f46; }
.badge-MDFJ        { background: #6ee7b7; color: #064e3b; }
.badge-DFJ         { background: #d1fae5; color: #14532d; }
.badge-MCFS        { background: #fee2e2; color: #991b1b; }
.badge-MCCS        { background: #fce7f3; color: #9d174d; }
.badge-CDS         { background: #fecdd3; color: #9f1239; }
.badge-DuoLadies   { background: #fda4af; color: #881337; }
.badge-DFL         { background: #fee2e2; color: #7f1d1d; }
.badge-MDFL        { background: #fecaca; color: #7f1d1d; }
.badge-default     { background: #f3f4f6; color: #374151; }
.cell-meno      { color: #1a1a1a; }
.cell-partnerka { color: #444; }
.cell-formacia  { color: #555; }
.cell-klub      { color: #555; font-style: italic; }
.empty-state { text-align: center; padding: 3rem; color: #999; }
.empty-state span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.champions-note {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #555;
}
.champions-note a { color: #1e40af; text-decoration: none; font-weight: 600; }
.champions-note a:hover { text-decoration: underline; }
@media (max-width: 700px) {
    .champions-controls { flex-direction: column; align-items: stretch; }
    .filter-group { justify-content: space-between; }
}
/* ── competition page styles ── */
/* Extracted from tournament HTML files  */

/* container override for competition pages */
.container:has(#nadpis) {
    width: 90%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .container:has(#nadpis) {
        width: 95%;
        padding: 1rem 0;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-style: italic;
}

/* h1, h2 styles for competition pages */
h1#nadpis {
    color: #164595;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #E3000F;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

h2#sucet_nadpis,
h2#cancelled_nadpis {
    color: #164595;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E3000F;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
    opacity: 1 !important;
    transform: translateY(0) !important;}

@media (max-width: 768px) {
    h1#nadpis { font-size: 1.8rem; }
    h2#sucet_nadpis, h2#cancelled_nadpis { font-size: 1.4rem; }
}

/* Page-level overrides for tournament pages */
.competition-page html,
.competition-page body {
    color: #333;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: #f5f5f5;
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100%;
    background: url("/") no-repeat center top;
    background-size: cover;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 2s ease;
    z-index: -1;
}
#bg-overlay.show {
    opacity: 0.10;
}

.pdf-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pdf_link {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.pdf_link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #164595, #E3000F);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pdf_link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    background: white;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.93rem;
}

.table-wrap thead {
    background: linear-gradient(135deg, #E3000F, #164595);
    color: white;
}

.table-wrap th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.9rem;
    user-select: none;
}

.table-wrap td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    font-size: 0.9rem;
}

.table-wrap tbody tr {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.table-wrap tbody tr:hover {
    background: #f4f6fb;
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap tbody tr.show {
    opacity: 1;
    transform: translateY(0);
}

#sucet_container {
    width: 60%;
    max-width: 600px;
    margin: 0 auto;
}

#sucet td:nth-child(2),
#sucet th:nth-child(2) {
    text-align: center;
}

@media (max-width: 768px) {
    .pdf-links {
        flex-direction: column;
        align-items: center;
    }
    #sucet_container {
        width: 95%;
    }
}