/* assets/css/styles.css */
/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* CSS Custom Properties */
:root {
    /* Primární modré barvy */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Gradienty */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Neutrální barvy */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Další barvy */
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Rozměry */
    --container-max-width: 1200px;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    /* Stíny */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800);
    text-decoration: none;
}

.brand-icon svg {
    color: var(--primary-600);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--border-radius);
}

.hamburger-line {
    width: 1.5rem;
    height: 0.125rem;
    background: var(--gray-700);
    transition: all var(--transition-normal);
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    right: 0;
    height: 0.125rem;
    background: var(--gradient-primary);
    border-radius: 0.0625rem;
}

.navbar-actions {
    display: flex;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .navbar-menu {
        display: flex;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: var(--white);
}

/* ZÁKLADNÍ btn-outline - pro světlé pozadí (header, běžné sekce) */
.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-400);
}

.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-700);
    transform: translateY(-1px);
}

/* HERO SEKCE - tmavé gradientní pozadí */
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
    transform: translateY(-1px);
}

/* RESPONZIVNÍ ÚPRAVY */

/* Mobile hero tlačítka - použijeme solidní verzi pro lepší čitelnost */
@media (max-width: 767px) {
    .hero-actions .btn-outline {
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary-600);
        border-color: var(--white);
        backdrop-filter: none;
    }
    
    .hero-actions .btn-outline:hover {
        background: var(--white);
        color: var(--primary-700);
    }
}

/* Header navbar akce na mobilu */
@media (max-width: 767px) {
    .navbar-actions .btn-outline {
        background: var(--gray-50);
        color: var(--primary-600);
        border-color: var(--primary-300);
    }
    
    .navbar-actions .btn-outline:hover {
        background: var(--primary-50);
        color: var(--primary-700);
    }
}

/* UTILITY TŘÍDY pro různé kontexty */

/* Tmavé pozadí variants */
.on-dark .btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.on-dark .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

/* Světlé pozadí variants */
.on-light .btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-400);
}

.on-light .btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

/* ACCESSIBILITY vylepšení */
.btn-outline:focus,
.btn-outline-light:focus,
.btn-outline-dark:focus,
.btn-outline-solid:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Hero sekce focus pro světlé tlačítko */
.hero .btn-outline:focus,
.btn-outline-light:focus {
    outline-color: var(--white);
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-outline,
    .btn-outline-dark {
        border-width: 2px;
        border-color: var(--primary-600);
        color: var(--primary-700);
        font-weight: 600;
    }
    
    .hero .btn-outline,
    .btn-outline-light {
        border-width: 2px;
        border-color: var(--white);
        background: rgba(255, 255, 255, 0.3);
    }
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    flex-shrink: 0;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-image {
    display: none;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .hero-image {
        display: flex;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch; /* Zajistí stejnou výšku všech karet */
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px; /* Zajistí minimální výšku pro konzistentní vzhled */
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--white);
    flex-shrink: 0; /* Zabrání zmenšení ikony */
}

.feature-title {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-size: 1.25rem;
    line-height: 1.3;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1; /* Zajistí, že popis zabere zbývající místo */
}


/* Responzivní breakpointy */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch; /* Zachová stejnou výšku i na desktopu */
    }
    
    .feature-card {
        min-height: 320px; /* Trochu větší výška na desktopu */
    }
}

/* Alternativní verze s flexbox pro ještě lepší kontrolu */
.features-grid-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.features-grid-flex .feature-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

@media (max-width: 767px) {
    .features-grid-flex {
        flex-direction: column;
    }
    
    .features-grid-flex .feature-card {
        max-width: none;
    }
}

/* Tournaments */
.tournaments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tournament-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.tournament-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tournament-image {
    position: relative;
    height: 200px;
    background: var(--gray-200);
    overflow: hidden;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.tournament-content {
    padding: 1.5rem;
}

.tournament-title {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.tournament-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.meta-item svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

.tournament-description {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.tournament-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .tournaments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tournament-meta {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .tournaments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Filters */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.filters-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.filter-select {
    padding: 0.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-500);
}

/* Rankings */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

.rankings-table-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
}

.rankings-table th,
.rankings-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.rankings-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rankings-table tr:hover {
    background: var(--gray-50);
}

.rankings-table .rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 700;
    color: var(--white);
}

.rankings-table .rank-1 { background: #ffd700; }
.rankings-table .rank-2 { background: #c0c0c0; }
.rankings-table .rank-3 { background: #cd7f32; }
.rankings-table .rank-other { 
    background: var(--gray-400);
    color: var(--gray-700);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--primary-100);
    border-radius: 50%;
    color: var(--primary-600);
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.contact-details address {
    font-style: normal;
    line-height: 1.6;
}

.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon svg {
    color: var(--primary-400);
}

.footer-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-description {
    line-height: 1.6;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-address {
    font-style: normal;
    line-height: 1.6;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact svg {
    color: var(--primary-400);
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Responsive overrides */
@media (max-width: 767px) {
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .navbar-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(0.375rem, 0.375rem);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(0.375rem, -0.375rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .tournaments-list .tournament-card {
        margin-bottom: 1.5rem;
    }
    
    .tournament-actions {
        flex-direction: column;
    }
    
    .tournament-actions .btn {
        width: 100%;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-group {
        min-width: auto;
    }
    
    .rankings-table-container {
        overflow-x: auto;
    }
    
    .rankings-table {
        min-width: 600px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-500);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(20px);
}

[data-aos="slide-up"] {
    transform: translateY(40px);
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .filters-bar {
        display: none !important;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
}

.language-toggle:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

.language-toggle svg {
    flex-shrink: 0;
}

.language-current {
    font-weight: 600;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.language-option:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.language-code {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.language-name {
    font-size: 0.875rem;
}

/* Mobile Language Switcher */
@media (max-width: 767px) {
    .language-switcher {
        order: -1;
        margin-right: 1rem;
    }
    
    .language-toggle {
        padding: 0.5rem;
        min-width: 60px;
        justify-content: center;
    }
    
    .language-dropdown {
        left: 0;
        right: auto;
    }
}

/* Cookies Banner Styles */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.cookies-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--primary-100);
    border-radius: 50%;
    color: var(--primary-600);
    flex-shrink: 0;
}

.cookies-text {
    flex: 1;
    min-width: 0;
}

.cookies-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-800);
}

.cookies-message {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.cookies-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Cookies Modal Styles */
.cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookies-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookies-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookies-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.cookies-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--gray-800);
}

.cookies-modal-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: color var(--transition-fast);
}

.cookies-modal-close:hover {
    color: var(--gray-600);
}

.cookies-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    margin-bottom: 0.75rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-slider {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background: var(--gray-300);
    border-radius: 0.75rem;
    transition: background-color var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-500);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(1.5rem);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category-name {
    font-weight: 600;
    color: var(--gray-800);
}

.cookie-category-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
    padding-left: 3.75rem;
}

.cookies-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: right;
}

/* Mobile Cookies Styles */
@media (max-width: 767px) {
    .cookies-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .cookies-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookies-actions .btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .cookies-modal-content {
        margin: 0;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .cookie-category-desc {
        padding-left: 0;
        margin-top: 0.5rem;
    }
}

/* Animation keyframes */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookies-banner.show {
    animation: slideInUp var(--transition-normal) ease-out;
}

.cookies-modal {
    animation: fadeIn var(--transition-normal) ease-out;
}

/* Accessibility improvements */
.cookies-banner:focus-within,
.cookies-modal:focus-within {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.language-toggle:focus,
.cookies-modal-close:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookies-banner {
        border-top-width: 2px;
    }
    
    .language-toggle {
        border-width: 2px;
    }
    
    .toggle-slider {
        border: 2px solid var(--gray-600);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookies-banner,
    .cookies-modal,
    .language-dropdown,
    .toggle-slider::before {
        transition: none;
    }
    
    .cookies-banner.show {
        animation: none;
    }
    
    .cookies-modal {
        animation: none;
    }
}

/* Dark mode support (připraveno pro budoucí implementaci) */
@media (prefers-color-scheme: dark) {
    :root {
        --cookies-bg: #1f2937;
        --cookies-text: #f9fafb;
        --cookies-border: #374151;
    }
    
    .cookies-banner {
        background: var(--cookies-bg);
        border-top-color: var(--cookies-border);
        color: var(--cookies-text);
    }
    
    .cookies-modal-content {
        background: var(--cookies-bg);
        color: var(--cookies-text);
    }
    
    .cookies-modal-header {
        border-bottom-color: var(--cookies-border);
    }
    
    .cookies-modal-footer {
        border-top-color: var(--cookies-border);
    }
}

/* Print styles - hide cookies and language switcher */
@media print {
    .cookies-banner,
    .cookies-modal,
    .language-switcher {
        display: none !important;
    }
}