/* =====================================================
   ROOT / THEME
===================================================== */
:root{
  --bg:#0b0d12;
  --bg-soft:#12151d;
  --card:#161a23;
  --border:rgba(255,255,255,.08);
  --text:#e6e8ee;
  --muted:#9aa0ad;

  --accent:#e53935;
  --accent-dark:#b71c1c;

  --success:#4cff7a;
  --error:#ff5c5c;
  --info:#5cc8ff;

  --gold:#ffca28;
  --silver:#cfd8dc;
  --bronze:#c47a3f;
}

/* =====================================================
   RESET
===================================================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
body{
  font-family:Inter,system-ui,sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%,rgba(229,57,53,.15),transparent),
    var(--bg);
  color:var(--text);
  line-height:1.6;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}

/* =====================================================
   LAYOUT
===================================================== */
.container{
  max-width:1300px;
  margin:auto;
  padding:40px 20px;
}
.grid{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:32px;
}
@media(max-width:1000px){
  .grid{grid-template-columns:1fr}
}

/* =====================================================
   HEADER / NAVBAR
===================================================== */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(14px);
  background:rgba(10,12,18,.75);
  border-bottom:1px solid var(--border);
}
.topbar-inner{
  margin:auto;
  padding:16px 20px;
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  justify-content:space-between;
}
.brand{
  font-weight:900;
  font-size:22px;
  color:var(--accent);
}
.menu{
  display:flex;
  gap:26px;
}
.nav-link{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  position:relative;
}
.nav-link:hover,
.nav-link.active{
  color:#fff;
}
.nav-link.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:3px;
  border-radius:3px;
  background:var(--accent);
}

/* =====================================================
   HERO
===================================================== */
.hero{
  position:relative;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.9));
}

.hero-inner{
  position:relative;
  max-width:1200px;
  margin:auto;
  padding:60px 20px 40px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:40px;
}

@media(max-width:900px){
  .hero-inner{grid-template-columns:1fr}
}

/* TEXT */
.hero h1{
  font-size:33px;
  line-height:1.1;
  margin-bottom:20px;
}

.hero p{
  color:var(--muted);
  max-width:520px;
}

/* ACTIONS */
.hero-actions{
  display:flex;
  gap:14px;
  margin-top:28px;
  flex-wrap:wrap;
}

.hero-ip{
  padding:14px 22px;
  border-radius:999px;
  background:var(--card);
  border:1px solid var(--border);
  font-weight:700;
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 32px 16px 28px;
    gap: 28px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.15;
  }

  .hero p {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions > * {
    width: 100%;
    text-align: center;
  }

  .hero-ip {
    padding: 14px 18px;
    font-size: 14px;
  }
}



/* =========================
   HERO STATS (ONLY HERE)
========================= */

.hero-stats{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;

  align-self:start;
  font-family:"Minecraft","VT323",monospace;
}

.hero-stats .stat{
  display:flex;
  align-items:center;
  gap:10px;

  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;

  padding:6px 14px;
  width:fit-content;
}

.hero-stats .stat span{
  font-size:15px;
  font-weight:800;
  line-height:1;
}

.hero-stats .stat small{
  font-size:10px;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero-stats #players-online{
  color:var(--success);
}

.hero-stats .stat:nth-child(2) span{
  color:var(--info);
}

@media(max-width:900px){
  .hero-stats{
    flex-direction:row;
    margin-top:22px;
  }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-primary{
  padding:16px 36px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));
  color:#fff;
  font-weight:800;
  border:none;
  cursor:pointer;
}
.btn-primary:hover{filter:brightness(1.1)}
.btn-outline{
  padding:14px 32px;
  border-radius:999px;
  background:transparent;
  color:#fff;
  border:1px solid var(--border);
  font-weight:700;
}
.full{width:100%}

/* =====================================================
   CARDS
===================================================== */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  padding:26px;
}

/* =====================================================
   SIDEBAR / PROFILE
===================================================== */
.profile-head{
  display:flex;
  gap:14px;
  align-items:center;
}
.profile-head img{
  border-radius:14px;
}
.profile-user strong{
  display:block;
}
.status.online{color:var(--success)}
.status.offline{color:var(--error)}

.profile-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:20px 0;
}
.profile-stat{
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:12px;
  text-align:center;
}
.profile-stat small{
  display:block;
  color:var(--muted);
}

/* ADMIN BUTTON */
.admin-btn{
  display:block;
  margin-bottom:14px;
  padding:14px;
  text-align:center;
  border-radius:16px;
  background:linear-gradient(135deg,var(--gold),#ff9800);
  color:#000;
  font-weight:900;
  text-decoration:none;
}

/* =====================================================
   NEWS
===================================================== */
.news-section{margin-top:40px}
.news-header{margin-bottom:24px}
.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.news-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  padding:22px;
}
.btn-read{
  color:var(--accent);
  font-weight:700;
  text-decoration:none;
}

/* ================= LOGIN FORM (FIXED) ================= */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.login-form input::placeholder {
  color: var(--muted);
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(229,57,53,.25);
}

.login-form button {
  margin-top: 8px;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #b71c1c);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* ================= SERVER STATS SIDEBAR ================= */
.server-stats-sidebar h3 {
  margin-bottom: 16px;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0c111a;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.05);
}

.stat-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.stat-row b {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

/* =====================================================
   VOTE PAGE
===================================================== */
.vote-page h1{
  font-size:42px;
  margin-bottom:12px;
}
.vote-box{
  margin:30px 0;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.vote-box input{
  flex:1;
  padding:16px 20px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--bg-soft);
  color:#fff;
  font-weight:700;
}

/* ================= VOTE LAYOUT ================= */
.vote-page {
  margin-top: 0 !important;
}

.vote-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .vote-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= PODIUM (STŘED) ================= */
.vote-podium {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 40px 0 30px;
}

.podium {
  background: linear-gradient(180deg, #151b26, #0f141c);
  border-radius: 26px;
  padding: 24px 20px;
  width: 100px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}

.podium img {
  width: 140px;
  margin: 0 auto 12px;
}

.podium.first {
  background: linear-gradient(135deg, #f6c343, #b8860b);
  box-shadow: 0 0 60px rgba(255,215,0,.55);
  transform: translateY(-10px);
}

.podium.second {
  opacity: .85;
}

.podium.third {
  opacity: .75;
}

/* ================= VOTE LIST ================= */
.vote-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #0f141c;
  border-radius: 16px;
  margin-bottom: 12px;
}

.vote-list .left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vote-list img {
  border-radius: 10px;
}

.vote-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1b2230;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.vote-rank.gold   { background: #f6c343; color:#000 }
.vote-rank.silver { background: #cfd8dc; color:#000 }
.vote-rank.bronze { background: #cd7f32; color:#000 }

/* ================= SIDEBAR ================= */
.vote-sidebar .card {
  margin-bottom: 24px;
}

.rewards {
  list-style: none;
  padding-left: 0;
}

.rewards li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}

.rewards li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {

  /* === NADPIS === */
  .vote-page h1 {
    font-size: 28px;
    line-height: 1.15;
    text-align: center;
  }

  /* === INPUT + BUTTONY === */
  .vote-box {
    flex-direction: column;
    gap: 12px;
  }

  .vote-box input {
    width: 100%;
    font-size: 15px;
    padding: 14px 16px;
  }

  /* === GRID === */
  .vote-grid {
    gap: 28px;
  }

  /* === PODIUM === */
  .vote-podium {
    gap: 14px;
    margin: 28px 0 24px;
  }

  .podium {
    width: 90px;
    padding: 16px 12px;
    border-radius: 20px;
  }

  .podium img {
    width: 80px;
    margin-bottom: 8px;
  }

  .podium.first {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(255,215,0,.45);
  }

  /* === LIST === */
  .vote-list li {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .vote-list .left {
    gap: 10px;
  }

  .vote-list img {
    width: 36px;
    height: 36px;
  }

  .vote-rank {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  /* === SIDEBAR === */
  .vote-sidebar .card {
    margin-bottom: 20px;
  }

  .rewards li {
    font-size: 14px;
    padding: 6px 0;
  }
}


/* ================= SIDEBAR TOP ================= */
.mini-toplist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-toplist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.mini-toplist img {
  width: 24px;
  border-radius: 6px;
}


/* =====================================================
   PODIUM
===================================================== */
.vote-podium{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:24px;
  margin:40px 0;
}
.podium{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:20px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
}
.podium img{
  height: 100px;      /* ⬅ menší render */
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.5));
}
.podium span{
  font-weight:900;
  margin-top:10px;
}
.podium.first{
  background:linear-gradient(180deg,var(--gold),rgba(255,202,40,.15));
  transform:translateY(-20px);
  animation: winnerGlow 3s ease-in-out infinite;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,215,64,.4),
    0 0 40px rgba(255,215,64,.35),
    0 0 80px rgba(255,215,64,.25);
}

.podium.first::before{
  content:"";
  position:absolute;
  inset:-8px;
  border-radius:22px;
  background:
    radial-gradient(circle at top,
      rgba(255,215,64,.35),
      transparent 70%);
  z-index:-1;
}
.podium.second{
  background:linear-gradient(180deg,var(--silver),rgba(207,216,220,.12));
}
.podium.third{
  background:linear-gradient(180deg,var(--bronze),rgba(196,122,63,.12));
}
.podium.first img{ height: 165px; }
.podium.second img{ height: 145px; }
.podium.third img{ height: 135px; }

.podium.first::after{
  content:"👑";
  position:absolute;
  top:-22px;
  font-size:22px;
  filter: drop-shadow(0 4px 10px rgba(255,215,64,.8));
}


/* =====================================================
   LEADERBOARD
===================================================== */
.vote-list{
  list-style:none;
  padding:0;
}
.vote-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  margin-bottom:12px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
}
.vote-list .left{
  display:flex;
  align-items:center;
  gap:14px;
}
.vote-list img{
  width:36px;
  height:36px;
  border-radius:10px;
  image-rendering:pixelated;
}
.vote-rank{
  width:28px;
  height:28px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.vote-rank.gold{background:var(--gold);color:#000}
.vote-rank.silver{background:var(--silver);color:#000}
.vote-rank.bronze{background:var(--bronze);color:#000}

/* =====================================================
   TOAST / SNACKBAR
===================================================== */
.toast{
  position:fixed;
  bottom:24px;
  right:24px;
  background:rgba(20,23,30,.96);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px 22px;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
  display:flex;
  gap:10px;
  align-items:center;
  opacity:0;
  transform:translateY(20px);
  transition:.3s;
  z-index:9999;
}
.toast.show{
  opacity:1;
  transform:translateY(0);
}
.toast.success::before{content:"✓";color:var(--success)}
.toast.error::before{content:"✕";color:var(--error)}
.toast.info::before{content:"ℹ";color:var(--info)}

@keyframes shake{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-6px)}
  75%{transform:translateX(6px)}
}
.toast.shake{
  animation:shake .35s;
}

/* =====================================================
   FOOTER
===================================================== */
.footer{
  margin-top:80px;
  border-top:1px solid var(--border);
  background:var(--bg-soft);
}
.footer-widgets{
  max-width:1300px;
  margin:auto;
  padding:40px 20px;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:30px;
}
.footer-widget a{
  display:block;
  color:var(--muted);
  text-decoration:none;
  margin:6px 0;
}
.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 0 30px;
}

.footer-left small {
  display: block;
  opacity: 0.7;
  font-size: 12px;
}

.footer-right img {
  height: 40px;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ================= ADMIN ================= */
.admin-card {
  background: #141922;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  background: #0c111a;
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.news-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.news-actions a {
  margin-right: 12px;
  color: #64b5f6;
  text-decoration: none;
}

.news-actions .danger {
  color: #ff5c5c;
}

.discord-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;

  background: #0f1220;
  color: #fff;
  border-radius: 18px;
  padding: 20px 24px;
  max-width: 360px;

  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  gap: 16px;

  z-index: 999999; /* DŮLEŽITÉ */
}


.discord-popup.hidden {
  display: none;
}

.discord-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.discord-content p {
  margin: 0 0 16px;
  color: #cbd0ff;
  font-size: 14px;
}

.discord-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
}

.btn.primary {
  background: #5865f2;
  color: #fff;
}

.btn.primary:hover {
  background: #4752c4;
}

.btn.secondary {
  background: #ffffff;
  color: #5865f2;
}

.discord-bot {
  width: 64px;
  height: 64px;
  align-self: flex-end;
}

.cookie-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;

  display: flex;
  align-items: center;
  gap: 14px;

  background: #11152a;
  color: #fff;

  padding: 16px 20px;
  border-radius: 18px;

  max-width: 360px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);

  z-index: 999999;
  animation: cookie-slide 0.5s ease;
}

.cookie-popup.hidden {
  display: none;
}

.cookie-icon {
  font-size: 34px;
}

.cookie-text strong {
  font-size: 16px;
}

.cookie-text p {
  font-size: 13px;
  margin: 4px 0 0;
  color: #cfd3ff;
}

.cookie-buttons button {
  background: #ffb703;
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-buttons button:hover {
  background: #ffd166;
}

@keyframes cookie-slide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 mobil */
@media (max-width: 600px) {
  .cookie-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}

/* === WHITELIST SIDEBAR === */
.whitelist-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.whitelist-box button {
    width: 100%;
    padding: 10px;
    background: #2e7d32;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.whitelist-box button:hover {
    background: #256628;
}

#whitelist-message {
    margin-top: 8px;
    font-size: 13px;
}

.sidebar > div {
    margin-bottom: 20px;
}

.whitelist-box .hint {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #b0b6bd;           /* jemná šedá */
    text-align: left;
}

/* Zvýraznění klíčových slov */
.whitelist-box .hint b {
    color: #ffffff;
    font-weight: 600;
}

.whitelist-box .hint .accent {
    color: #4caf50;           /* zelená – ladí s tlačítkem */
    font-weight: 600;
}

.footer-copy small {
    display: block;
    margin-top: 4px;
}

.gdpr {
    max-width: 900px;
    margin-top: 0 !important;
    padding: 30px;
    background: rgba(255, 255, 255, 0.04); /* jemná karta */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    color: #e5e7eb; /* světlý text */
    line-height: 1.7;
}

/* Nadpisy */
.gdpr h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.gdpr h2 {
    font-size: 1.3rem;
    margin-top: 35px;
    margin-bottom: 10px;
    color: #f3f4f6;
}

/* Text */
.gdpr p {
    margin-bottom: 14px;
    color: #d1d5db;
}

/* Seznamy */
.gdpr ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.gdpr li {
    margin-bottom: 6px;
    color: #d1d5db;
}

/* Oddělovače */
.gdpr hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 35px 0;
}

/* Zvýraznění */
.gdpr strong {
    color: #ffffff;
    font-weight: 600;
}

/* Footer */
.gdpr footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #9ca3af;
}

/* Responzivita */
@media (max-width: 600px) {
    .gdpr {
        padding: 20px;
        margin: 40px 15px;
    }

    .gdpr h1 {
        font-size: 1.6rem;
    }

    .gdpr h2 {
        font-size: 1.15rem;
    }
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.world-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px;
  margin-left: 12px;
}

.world-switch .world {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.world-switch .world img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.world-switch .world:hover {
  color: #fff;
}

.world-switch .world.active {
  background: #e53935; /* stejná červená jako CTA */
  color: #fff;
}

.world-switch .world.active img {
  opacity: 1;
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .menu {
    width: 100%;
    justify-content: space-between;
  }

  .world-switch {
    margin-top: 4px;
  }
}