@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600&display=swap');

/* ===== Design tokens ===== */
:root{
  --fg:#e8e8ea; 
  --muted:#b2b2b8; 
  --line:rgba(255,255,255,.12);
  --card:rgba(18,18,22,.55); 
  --card-strong:rgba(52, 52, 63, 0.7);
  --glass-bg:linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  --blur:14px; 
  --radius:16px; 
  --shadow:0 12px 40px rgba(0,0,0,.35);

  /* === világos piros téma === */
  --accent:#ff4d4d;      /* fő piros */
  --accent-2:#ff1a1a;    /* mélyebb piros */
  --success:#43b581;     
  --danger:#ff6b6b;
}

/* ===== Reset & base ===== */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
html{ font-size:92%; } 
body{ font-family:Arial,Helvetica,sans-serif; color:var(--fg); overflow-x:hidden; }

/* ===== Background ===== */
.background-overlay{
  position:fixed; inset:0; z-index:-1;
  background:url("../images/background_img.png") center/cover no-repeat fixed;
}
.background-overlay::before{
  content:""; position:absolute; inset:0;
  backdrop-filter:blur(var(--blur)) saturate(120%);
  -webkit-backdrop-filter:blur(var(--blur)) saturate(120%);
  background:var(--glass-bg);
}

/* ===== Logo ===== */
.logo a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.logo a:hover { opacity: .9; }

/* ===== Layout ===== */
.page-wrap{
  min-height:100dvh; display:flex; flex-direction:column; padding-bottom:0;
}
main{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  padding:0 16px;
  min-height:auto;
}
.content-box{
  width:min(1100px, 88vw); background:var(--card); color:#fff;
  margin:0 auto;
  padding:22px 18px;
  border-radius:var(--radius); border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(calc(var(--blur)*.7));
  -webkit-backdrop-filter:blur(calc(var(--blur)*.7));
}

/* ===== Header / Nav ===== */
header{background:rgba(0,0,0,.25)}
nav{
  max-width:1200px;margin:0 auto;padding:16px 20px;
  display:flex;align-items:center;justify-content:space-between;position:relative;flex-wrap:wrap;
}
.logo{
  font-family:"Inter",sans-serif;font-size:28px;color:#fff;
  text-shadow:0 0 18px rgba(255,77,77,.65); flex:1;
}
.hamburger{display:none;font-size:28px;cursor:pointer;color:#fff;position:absolute;right:20px;top:50%;transform:translateY(-50%)}
nav ul{list-style:none;display:flex;gap:20px}
nav ul li a{
  color:#fff;text-decoration:none;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;font-size:.85rem;opacity:.9;padding:6px 10px;border-radius:10px;transition:.2s
}
nav ul li a:hover{opacity:1;background:rgba(255,255,255,.08)}
nav ul li a.active{background:rgba(255,77,77,.25)}
nav ul.hidden{display:none}
@media (min-width:901px){ nav ul.hidden{display:flex!important} }
@media (max-width:900px){
  .hamburger{display:block}
  nav{flex-direction:column; align-items:flex-start}
  nav ul{
    flex-direction:column; background:rgba(0,0,0,.7); width:100%;
    margin-top:60px; padding:10px 20px; border-radius:12px;
  }
}

/* ===== Titles / text ===== */
.welcome-text{ text-align:center; margin-bottom:20px; color:var(--muted); font-family:"Inter",sans-serif }
.welcome-text h2{ font-size:24px; margin-bottom:6px; color:#fff }
.welcome-text p{ font-size:16px }
.server-list-title{
  font-family:"Inter",sans-serif; font-size:22px; text-align:center; color:#fff;
  margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid var(--line);
}

/* ===== Server table ===== */
.table-wrap{ overflow-x:auto; overflow-y:visible; }

.server-table{
  width:100%; border-collapse:separate; border-spacing:0; background:transparent; color:#f0f0f3;
  border:1px solid var(--line); border-radius:14px; overflow:visible !important;
}
.server-table thead th{
  position:sticky; top:0; z-index:0;
  background:linear-gradient(180deg, rgba(24,24,28,.95), rgba(24,24,28,.9));
  text-transform:uppercase; font-size:.85rem; letter-spacing:.04em; font-weight:800;
  padding:10px 12px; text-align:left; border-bottom:1px solid var(--line);
}
.server-table th:first-child{border-top-left-radius:14px}
.server-table th:last-child{border-top-right-radius:14px}
.server-table td{
  background:rgba(18,18,22,.55);
  padding:9px 12px; border-bottom:1px solid var(--line);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.server-table tbody tr:hover td{background:rgba(255,77,77,.12)}
.server-table tbody tr:last-child td{border-bottom:none}

/* Status badge */
.status-cell{display:flex;align-items:center;gap:8px;font-weight:600}
.online-dot,.offline-dot{
  width:10px;height:10px;border-radius:50%;display:inline-block;
  box-shadow:0 0 6px rgba(255,255,255,.25);
}
.online-dot{background:var(--success)}
.offline-dot{background:var(--danger)}

/* Players tooltip */
.server-table td:has(.players-badge){ overflow:visible; }
.players-badge{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:var(--card-strong); color:#fff; font-size:.85rem; font-weight:700;
  position:relative; white-space:nowrap; transition:filter .2s;
}
.players-badge:hover{filter:brightness(1.08)}
.players-tooltip{
  display:none; position:fixed; bottom:120%; right:0; z-index:9999;
  background:rgba(46, 46, 53, 0.98); color:#fff; padding:10px 12px; border-radius:10px;
  border:1px solid var(--line); min-width:max-content; max-width:520px; box-shadow:var(--shadow);
}
.players-badge:hover .players-tooltip{display:block}

/* ===== Buttons ===== */
.btn{
  display:inline-block; padding:10px 16px; border-radius:12px; border:1px solid var(--line);
  text-decoration:none; color:var(--fg); transition:all .2s;
}
.btn-primary{ background: linear-gradient(180deg,var(--accent),var(--accent-2)); color:#fff; }
.btn-primary:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost{ background: rgba(255,255,255,.06); }
.btn-ghost:hover{ background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* ===== Hero, Metrics, USP, CTA ===== */
.hero-belt,
.metrics,
.usp-grid,
.cta-wide{
  width:min(1100px, 88vw);
  margin-left:auto;
  margin-right:auto;
}
.hero-belt{
  margin: 32px auto 0;
  text-align: center;
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  border: 1px solid var(--line);
}
.hero-belt h3{ font-family: 'Inter', sans-serif; letter-spacing:.5px; font-size:1.3rem; color:#fff; }
.hero-belt p{ color: var(--muted); margin-top:8px; font-size:.95rem; }
.hero-actions{ margin-top:18px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* Metrics */
.metrics{
  margin-top: 18px;
  display:grid; grid-template-columns: repeat(3,1fr); gap:14px;
}
.metric{
  background: var(--card-strong);
  border:1px solid var(--line); border-radius: var(--radius);
  padding:18px; text-align:center; backdrop-filter: blur(var(--blur));
}
.metric-value{ font-size:28px; font-weight:700; line-height:1; color:#fff; }
.metric-label{ color:var(--muted); margin-top:6px; font-size:13px; }

/* USP grid */
.usp-grid{
  margin-top: 18px;
  display:grid; grid-template-columns: repeat(3,1fr); gap:14px;
}
.usp{
  background: var(--card); border:1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding:18px; backdrop-filter: blur(var(--blur));
  text-align:center;
}
.usp-icon{ font-size:22px; margin-bottom:6px; color:var(--accent); }
.usp h4{ font-size:16px; margin-bottom:6px; color:#fff; }
.usp p{ color:var(--muted); font-size:14px; line-height:1.3; }

/* CTA */
.cta-wide{
  margin: 18px auto 40px; position:relative;
  background: var(--glass-bg); border:1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); overflow:hidden;
}
.cta-inner{
  padding: 26px 22px; text-align:center;
  background: radial-gradient(1200px 400px at 50% -20%, rgba(255,77,77,.25), transparent);
}
.cta-inner h4{ font-size:1.2rem; margin-bottom:8px; color:#fff; }
.cta-inner p{ color:var(--muted); margin:6px 0 12px; }

/* ===== Legal & Discord ===== */
.discord-fixed{
  position: fixed;
  bottom: 55px;
  left: 22px;
  z-index: 1000;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.5);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: transform .18s;
}
.discord-fixed:hover{ transform:scale(1.06) }
.discord-fixed img{ width:28px; height:28px; object-fit:contain }

footer{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  color: var(--muted);
  font-size:.9rem;
  background: rgba(0,0,0,.25);
  border-top:1px solid var(--line);
}

/* ===== Legal links next to Discord button ===== */
.legal-fixed{
  position: fixed;
  bottom: 55px;
  left: calc(22px + 52px + 12px);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  z-index: 10;
}
.legal-fixed a{
  color: var(--fg);
  text-decoration: none;
  font-size: .9rem;
  opacity: .9;
  transition: opacity .15s ease;
}
.legal-fixed a:hover{ opacity: 1; text-decoration: underline; }
.legal-fixed .sep{
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .85;
  flex: none;
}

/* ===== Commands page ===== */
.commands-container {
  width: min(1000px, 90vw);
  margin: 40px auto 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.commands-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  backdrop-filter: blur(var(--blur));
}

.commands-section h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 14px;
  text-align: center;
}

.commands-section.vip h2 {
  color: var(--accent-2);
}

.commands-section p {
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.commands-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  padding-left: 0;
}

.commands-list li {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.1);
  transition: all 0.2s;
}

.commands-list li:hover {
  background: rgba(255, 77, 77, 0.15);
  transform: translateY(-1px);
}

.commands-list code {
  color: var(--accent);
  font-family: monospace;
  font-weight: bold;
  font-size: .95rem;
}

.vip-bonus {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.vip-bonus h3 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 10px;
}

.vip-bonus ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

/* Reszponzív */
@media (max-width: 700px) {
  .commands-list {
    grid-template-columns: 1fr;
  }
}

#copy-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background-color: rgba(76, 175, 80, 0.95); /* zöld */
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}
#copy-popup.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}


