/* ============================================================
   METIN2 CMS - MODERN PROFESSIONAL STYLESHEET 2025
   Clean, minimal, elegant design with full mobile optimization
   FINÁLNÍ VERZE - Vylepšené mobilní menu
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800;900&display=swap');

/* ============================================================
   CSS VARIABLES - Modern Color Palette
   ============================================================ */
:root {
    /* Primary colors - refined and elegant */
    --primary-dark: #0a0e17;
    --primary-surface: #141921;
    --primary-elevated: #1e2530;
    --primary-border: #2a3441;
    
    /* Accent colors - subtle gold and red */
    --accent-gold: #c9a962;
    --accent-gold-light: #d4b76f;
    --accent-red: #c84040;
    --accent-red-dark: #a03333;
    
    /* Neutral colors */
    --neutral-100: #e8e9ed;
    --neutral-200: #c8cad0;
    --neutral-300: #9a9ca5;
    --neutral-400: #6b6d78;
    --neutral-500: #4a4c56;
    
    /* Shadows - soft and layered */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.45);
    
    /* Glow effects - subtle */
    --glow-gold: 0 0 24px rgba(201, 169, 98, 0.3);
    --glow-red: 0 0 24px rgba(200, 64, 64, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0, 1);
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing system */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary-dark);
    background-image: 
        radial-gradient(ellipse at top right, rgba(201, 169, 98, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(200, 64, 64, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--neutral-100);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 2;
}

/* ============================================================
   HEADER - Clean and modern
   ============================================================ */
.header {
    background: rgba(20, 25, 33, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--primary-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.header:hover::after {
    opacity: 0.5;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    gap: var(--space-xl);
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 1001;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(var(--shadow-sm));
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* ============================================================
   MOBILE TOGGLE - HAMBURGER
   ============================================================ */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    z-index: 1001;
    position: relative;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.navbar-toggle:hover {
    background: rgba(201, 169, 98, 0.1);
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--neutral-100);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
    position: relative;
}

/* Souměrné X při aktivaci */
.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent-gold);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent-gold);
}

/* ============================================================
   NAVIGATION MENU - DESKTOP
   ============================================================ */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.navbar-nav a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    color: var(--neutral-200);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-base);
    z-index: 1;
}

.navbar-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-elevated);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.navbar-nav a:hover {
    color: var(--accent-gold-light);
}

.navbar-nav a:hover::before {
    opacity: 1;
}

.navbar-nav a i {
    font-size: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-red);
    color: var(--neutral-100);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-red-dark);
    color: var(--neutral-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md), var(--glow-gold);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--primary-elevated);
    color: var(--neutral-100);
    border-color: var(--primary-border);
}

.btn-secondary:hover {
    background: var(--primary-surface);
    color: var(--neutral-100);
    border-color: var(--neutral-400);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-elevated);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    color: var(--neutral-100);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lang-current:hover {
    background: var(--primary-surface);
    border-color: var(--neutral-400);
}

.lang-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: var(--shadow-xs);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--primary-elevated);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    list-style: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    overflow: hidden;
    z-index: 2000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--neutral-200);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lang-dropdown li a:hover {
    background: var(--primary-surface);
    color: var(--neutral-100);
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-2xl);
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
    z-index: 2;
}

.main-content {
    min-height: 600px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--primary-surface);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--neutral-500);
    box-shadow: var(--shadow-md);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold) 50%,
        transparent 100%
    );
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-100);
    letter-spacing: -0.5px;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.card-header i {
    color: var(--accent-gold);
    font-size: 1.5rem;
}

/* ============================================================
   RANKINGS SECTION
   ============================================================ */
.rankings-section {
    width: 100%;
}

.rankings-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--primary-border);
    flex-wrap: wrap;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--neutral-300);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: -2px;
}

.tab-button i {
    font-size: 1.125rem;
}

.tab-button:hover {
    color: var(--neutral-100);
    background: rgba(201, 169, 98, 0.05);
}

.tab-button.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--primary-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ranking-table thead {
    background: var(--primary-dark);
}

.ranking-table thead tr {
    border-bottom: 2px solid var(--accent-gold);
}

.ranking-table th {
    padding: var(--space-lg);
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.ranking-table tbody tr {
    border-bottom: 1px solid var(--primary-border);
    transition: all var(--transition-base);
}

.ranking-table tbody tr:last-child {
    border-bottom: none;
}

.ranking-table tbody tr:hover {
    background: var(--primary-surface);
    transform: scale(1.005);
    box-shadow: var(--shadow-sm);
}

.ranking-table td {
    padding: var(--space-lg);
    color: var(--neutral-200);
    font-size: 0.9375rem;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9375rem;
}

.rank-badge.top1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a0f00;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
}

.rank-badge.top2 {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
    color: #1a0f00;
    box-shadow: 0 0 12px rgba(156, 163, 175, 0.5);
}

.rank-badge.top3 {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #fff;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.5);
}

.rank-badge.normal {
    background: var(--primary-surface);
    color: var(--neutral-300);
    border: 1px solid var(--primary-border);
}

.player-name {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--neutral-100);
}

.empire-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary-border);
}

.level-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(201, 169, 98, 0.15);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 169, 98, 0.3);
}

.guild-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(200, 64, 64, 0.15);
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(200, 64, 64, 0.3);
}

/* ============================================================
   STATISTICS GRID
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.stat-card {
    background: var(--primary-elevated);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    background: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.stat-icon i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-100);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-300);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--neutral-500);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

.sidebar-section {
    background: var(--primary-surface);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.sidebar-section:hover {
    border-color: var(--neutral-500);
    box-shadow: var(--shadow-md);
}

.section-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-100);
    letter-spacing: -0.3px;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-header i {
    color: var(--accent-gold);
    font-size: 1.125rem;
}

/* ============================================================
   SERVER STATUS
   ============================================================ */
.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--primary-elevated);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.status-text {
    flex: 1;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #10b981;
    letter-spacing: 0.5px;
}

.status-text.offline {
    color: #ef4444;
}

.server-stats-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--primary-elevated);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.stat-item i {
    color: var(--accent-gold);
    width: 20px;
    text-align: center;
}

.stat-item span {
    flex: 1;
    color: var(--neutral-200);
    font-size: 0.9375rem;
}

.stat-item strong {
    color: var(--neutral-100);
    font-weight: 600;
}

/* ============================================================
   RANKING WIDGET (SIDEBAR)
   ============================================================ */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--primary-elevated);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.ranking-item:hover {
    background: var(--primary-dark);
    border-color: var(--neutral-500);
    transform: translateX(4px);
}

.rank-number {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--primary-surface);
    color: var(--neutral-300);
    border: 1px solid var(--primary-border);
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a0f00;
    border-color: #fbbf24;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
    color: #1a0f00;
    border-color: #e5e7eb;
    box-shadow: 0 0 12px rgba(156, 163, 175, 0.4);
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #fff;
    border-color: #d97706;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name-small {
    font-weight: 600;
    color: var(--neutral-100);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-details {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8125rem;
    margin-top: 2px;
}

.level-mini {
    color: var(--accent-gold);
    font-weight: 600;
}

.empire-mini {
    color: var(--neutral-300);
}

.view-all-btn {
    display: block;
    width: 100%;
    padding: var(--space-md);
    margin-top: var(--space-md);
    background: var(--primary-elevated);
    color: var(--neutral-100);
    text-align: center;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.view-all-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ============================================================
   DOWNLOAD LINKS
   ============================================================ */
.download-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--primary-elevated);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    color: var(--neutral-100);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.download-btn i {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.download-btn:hover {
    background: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary-surface);
    border-top: 1px solid var(--primary-border);
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-top: var(--space-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-100);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.3px;
}

.footer-section p {
    color: var(--neutral-300);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--neutral-300);
    font-weight: 500;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--primary-border);
    color: var(--neutral-300);
    font-size: 0.875rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
    .page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ============================================================
   MOBILE MENU - FULLSCREEN OVERLAY
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --space-xl: 1.25rem;
        --space-2xl: 1.75rem;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Zobrazit hamburger */
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    /* Fullscreen mobilní menu */
    .navbar-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--space-2xl) var(--space-lg);
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-base), visibility var(--transition-base);
        z-index: 999;
        overflow-y: auto;
        box-shadow: none;
        border-right: none;
    }
    
    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-menu::before {
        content: none;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        gap: var(--space-sm);
        margin: 0;
        align-items: stretch;
    }
    
    .navbar-nav li {
        width: 100%;
    }
    
    .navbar-nav a {
        width: 100%;
        justify-content: center;
        padding: var(--space-lg);
        font-size: 1.125rem;
        background: var(--primary-elevated);
        border: 1px solid var(--primary-border);
        color: var(--neutral-100);
        border-radius: var(--radius-md);
        transition: all var(--transition-base);
    }
    
    .navbar-nav a::before {
        display: none;
    }
    
    .navbar-nav a:hover,
    .navbar-nav a:active {
        background: rgba(201, 169, 98, 0.15);
        border-color: var(--accent-gold);
        color: var(--accent-gold-light);
        transform: translateX(4px);
    }
    
    .navbar-nav a i {
        font-size: 1.125rem;
        min-width: 24px;
    }
    
    .navbar-right {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin-top: 0;
        gap: var(--space-sm);
    }
    
    .navbar-right .btn {
        width: 100%;
        padding: var(--space-lg);
        font-size: 1rem;
        justify-content: center;
    }
    
    .navbar-right .lang-switcher {
        width: 100%;
        margin-top: var(--space-sm);
    }
    
    .navbar-right .lang-current {
        width: 100%;
        justify-content: center;
        padding: var(--space-lg);
    }
    
    .logo-text {
        font-size: 1.375rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .container {
        padding: 0 var(--space-lg);
    }
    
    .page-wrapper {
        padding: var(--space-xl) var(--space-lg);
        gap: var(--space-xl);
    }
    
    .card {
        padding: var(--space-xl);
        margin-bottom: var(--space-lg);
        border-radius: var(--radius-md);
    }
    
    .card-header {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }
    
    /* Ranking table mobile */
    .ranking-table {
        display: block;
        overflow-x: auto;
    }
    
    .ranking-table thead {
        display: none;
    }
    
    .ranking-table tbody,
    .ranking-table tr,
    .ranking-table td {
        display: block;
        width: 100%;
    }
    
    .ranking-table tr {
        margin-bottom: var(--space-lg);
        border: 1px solid var(--primary-border);
        border-radius: var(--radius-md);
        padding: var(--space-md);
    }
    
    .ranking-table td {
        text-align: left;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--primary-border);
    }
    
    .ranking-table td:last-child {
        border-bottom: none;
    }
    
    .ranking-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--accent-gold);
        display: inline-block;
        margin-right: var(--space-md);
        min-width: 100px;
    }
    
    .rankings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        white-space: nowrap;
        padding: var(--space-sm) var(--space-lg);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-section {
        padding: var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
    }
    
    .ranking-item {
        padding: var(--space-sm) var(--space-md);
    }
    
    .player-name-small {
        font-size: 0.875rem;
    }
    
    .player-details {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.25rem;
        --space-2xl: 1.5rem;
    }
    
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .page-wrapper {
        padding: var(--space-lg) var(--space-md);
        gap: var(--space-lg);
    }
    
    .card {
        padding: var(--space-lg);
        border-radius: var(--radius-sm);
    }
    
    .card-header {
        font-size: 1.25rem;
        gap: var(--space-sm);
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .navbar {
        padding: var(--space-md) 0;
    }
    
    .navbar-nav a {
        font-size: 0.9375rem;
        padding: var(--space-sm) var(--space-md);
    }
    
    .sidebar-section {
        padding: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .section-header {
        font-size: 1.125rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
    
    .rank-number {
        min-width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .stat-item {
        padding: var(--space-sm);
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .navbar-menu {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .navbar-nav {
        max-width: 100%;
    }
    
    .navbar-right {
        max-width: 100%;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-gold { color: var(--accent-gold); }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--neutral-300); }

@media (max-width: 768px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
}

@media (min-width: 769px) {
    .d-desktop-none { display: none !important; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade {
    animation: fadeIn 0.4s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-in {
    animation: slideInRight 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.navbar-menu,
.card,
.sidebar-section,
.btn {
    will-change: transform;
    transform: translateZ(0);
}

/* ============================================================
   END OF STYLESHEET - FINÁLNÍ VERZE S VYLEPŠENÝM MOBILE MENU
   ============================================================ */

