/* --- VARIABLES & SETUP --- */
:root {
    --bg-base: #030712;
    --bg-surface: #0f172a;
    --bg-elevated: rgba(30, 41, 59, 0.6);
    --aqua-primary: #00e5ff;
    --aqua-dark: #008b99;
    --aqua-glow: rgba(0, 229, 255, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-surface); border-radius: 10px; border: 1px solid var(--border-color); }
::-webkit-scrollbar-thumb:hover { background: var(--aqua-primary); }

/* --- AMBIENT GLOWS --- */
.ambient-glow {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%; z-index: -1; pointer-events: none; filter: blur(60px);
}
.glow-1 { top: -100px; left: -200px; }
.glow-2 { top: 40%; right: -300px; background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%); }

#particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* --- TYPOGRAPHY & ELEMENTS --- */
.badge {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    background: rgba(0, 229, 255, 0.1); border: 1px solid var(--aqua-primary);
    color: var(--aqua-primary); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 20px;
}
.text-aqua { color: var(--aqua-primary); text-shadow: 0 0 20px var(--aqua-glow); }
.section-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 40px; text-align: left; }

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed; background: #0f172a; border-radius: 16px;
    padding: 16px 24px; display: flex; align-items: center; gap: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--aqua-primary);
    z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast-icon { background: rgba(0,229,255,0.2); color: var(--aqua-primary); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.toast-content h4 { font-size: 1rem; margin-bottom: 2px; }
.toast-content p { font-size: 0.85rem; color: var(--text-muted); }
.toast.show { opacity: 1; visibility: visible; }
@media (min-width: 769px) { .toast { top: 24px; right: -100%; } .toast.show { right: 24px; } }
@media (max-width: 768px) { .toast { top: -100px; left: 50%; transform: translateX(-50%); width: 90%; } .toast.show { top: 24px; } }

/* --- FLOATING NAV --- */
.floating-nav {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color); border-radius: 100px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px 8px 24px; width: 90%; max-width: 1000px; z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 45px; display: block; filter: drop-shadow(0 0 10px var(--aqua-glow)); } /* Zvětšeno z 35px na 45px */
.nav-logo-text { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: 0.5px; line-height: 1; } /* Zvětšeno z 1.3rem na 1.5rem */

.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a { padding: 10px 20px; border-radius: 100px; font-weight: 500; font-size: 0.95rem; color: var(--text-muted); transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); background: rgba(255,255,255,0.05); }

.nav-side { display: flex; gap: 12px; align-items: center; }
.nav-btn { padding: 10px 20px; border-radius: 100px; font-weight: 700; font-size: 0.9rem; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.nav-btn.login { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid var(--border-color); }
.nav-btn.login:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); }
.nav-btn.store { background: var(--aqua-primary); color: #000; box-shadow: 0 0 15px var(--aqua-glow); }
.nav-btn.store:hover { background: #fff; box-shadow: 0 0 20px #fff; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 5px 10px; }

/* --- HERO SECTION --- */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-title { font-size: 5.5rem; font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 500px; margin-bottom: 48px; }

.ip-interact {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 12px 12px 12px 24px;
    display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
    cursor: pointer; transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.ip-interact:hover { border-color: var(--aqua-primary); transform: translateY(-5px); box-shadow: 0 15px 40px var(--aqua-glow); }
.ip-info { display: flex; flex-direction: column; }
.ip-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.ip-address { font-size: 1.4rem; font-weight: 900; color: #fff; }
.ip-action { background: rgba(0,229,255,0.1); color: var(--aqua-primary); width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

.hero-stats-panel { display: flex; flex-direction: column; gap: 20px; }

/* Fix pro boxy s informacemi */
.stat-box { 
    background: var(--bg-elevated); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--border-color); 
    border-radius: 24px; 
    padding: 24px; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    transition: 0.3s; 
}
.stat-box:hover { background: rgba(40, 50, 70, 0.8); border-color: rgba(255,255,255,0.2); }

/* Vzhled a chování pokud je to link (např. Discord) */
.stat-link { cursor: pointer; text-decoration: none; color: inherit; display: flex; }
.stat-link:hover { 
    border-color: var(--aqua-primary); 
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15); 
    transform: translateY(-3px); 
}

/* Fix pro ikonky uvnitř boxů */
.stat-icon { 
    font-size: 2rem; 
    color: var(--aqua-primary); 
    width: 64px; 
    height: 64px; 
    min-width: 64px; /* Důležité: zabrání flexboxu ve zmršťování ikonky */
    background: rgba(0,229,255,0.05); 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; /* Důležité: zabrání uřezávání tvaru */
}

.stat-data { display: flex; flex-direction: column; justify-content: center; }
.s-value { font-size: 2.2rem; font-weight: 900; line-height: 1.1; }
.s-name { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.pulse-aqua { text-shadow: 0 0 15px var(--aqua-glow); }

.abstract-box { background: linear-gradient(135deg, var(--aqua-dark), var(--bg-surface)); justify-content: center; text-align: center; border: none; flex-direction: column; gap: 5px; padding: 30px; }
.abstract-box h3 { font-size: 2rem; font-weight: 900; color: #fff; }
.abstract-box span { font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 2px; }

/* --- GAMEMODES BENTO GRID --- */
.gamemodes-section { padding: 100px 0; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 24px; }
.bento-item { position: relative; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: var(--bg-surface); border: 1px solid var(--border-color); transition: 0.3s; }
.bento-item:hover { transform: translateY(-5px); border-color: var(--aqua-primary); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-medium { grid-column: span 1; grid-row: span 2; }
.bento-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.5s; z-index: 1; }
.bento-item:hover .bento-bg { transform: scale(1.05); }
.bento-item::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, #050b14 10%, rgba(5,11,20,0.2) 100%); z-index: 2; }
.bento-content { position: relative; z-index: 3; padding: 40px; }
.mode-icon { width: 50px; height: 50px; background: var(--aqua-primary); color: #000; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.bento-item h3 { font-size: 2.2rem; font-weight: 900; margin-bottom: 15px; color: #fff; }
.bento-item p { color: #cbd5e1; font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tags span { background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; color: #fff; }

.glass-card { background: var(--bg-elevated); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; grid-column: span 3; grid-row: span 1; }
.center-content { text-align: center; padding: 30px; }
.center-content h4 { font-size: 1.5rem; margin-bottom: 5px; }

/* --- POTM SHOWCASE --- */
.potm-showcase { padding: 100px 0; }
.potm-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 40px; padding: 60px; overflow: hidden; position: relative; }
.potm-text-area { z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.potm-text-area h2 { font-size: 3.5rem; font-weight: 900; line-height: 1; margin-bottom: 24px; }
.potm-text-area p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; max-width: 450px; }

.countdown-wrapper span { display: block; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 12px; }
.timer-clean { display: flex; gap: 20px; }
.t-box { font-size: 1.2rem; color: var(--text-muted); font-weight: 500; }
.t-box span { display: block; font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; }

.potm-visual-area { position: relative; display: flex; justify-content: center; align-items: center; z-index: 1; }
.pedestal-glow { position: absolute; width: 300px; height: 300px; background: var(--aqua-primary); filter: blur(100px); opacity: 0.3; border-radius: 50%; }
.hero-skin { position: relative; z-index: 2; height: 400px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8)); }
.player-name-tag { position: absolute; bottom: 30px; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); padding: 12px 30px; border-radius: 100px; border: 1px solid var(--aqua-primary); font-size: 1.5rem; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 10px; z-index: 3; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.player-name-tag i { color: #f1c40f; }

/* --- FOOTER --- */
.site-footer { background: #020408; padding: 80px 0 30px; border-top: 1px solid var(--border-color); }
.footer-layout { display: grid; grid-template-columns: 2fr 3fr; gap: 60px; margin-bottom: 60px; }
.f-brand h2 { font-size: 2.5rem; font-weight: 900; color: var(--aqua-primary); margin-bottom: 20px; letter-spacing: -1px; }
.f-brand p { color: var(--text-muted); margin-bottom: 24px; max-width: 300px; }
.f-socials { display: flex; gap: 12px; }
.f-socials a { width: 45px; height: 45px; border-radius: 12px; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; transition: 0.3s; }
.f-socials a:hover { background: var(--aqua-primary); color: #000; transform: translateY(-3px); }

.f-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.link-group h4 { font-size: 1.1rem; margin-bottom: 24px; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.link-group a { display: block; color: var(--text-muted); margin-bottom: 12px; transition: 0.3s; font-weight: 500; }
.link-group a:hover { color: var(--aqua-primary); padding-left: 8px; }

.f-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .bento-large { grid-column: span 3; grid-row: span 2; }
    .bento-medium { grid-column: span 3; grid-row: span 2; }
    .potm-container { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; }
    .potm-text-area p { margin: 0 auto 40px; }
    .timer-clean { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links, .nav-side .store, .nav-side .login { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-desc { margin: 0 auto 30px; }
    .ip-interact { width: 100%; justify-content: center; }
    .bento-content { padding: 24px; }
    .footer-layout { grid-template-columns: 1fr; }
    .f-links { grid-template-columns: 1fr; }
    .f-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .hero-skin { height: 300px; }
    .nav-logo-text { display: none; }
}