/* =========================
   VENORIA THEME
   autor: Maciek Krzysztoporski
   ========================= */

:root{
  /* TŁO */
  --bg:#0b140b;
  --panel:#0f1f12;
  --panel2:#0c1a10;

  /* TEKST */
  --text:#f3f7e9;
  --muted:#b8c6a3;

  /* RAMKI */
  --border:rgba(214,181,99,.18);

  /* AKCENTY */
  --accent:#2fd47a;     /* zielony */
  --accent2:#d6b563;    /* złoto */

  /* STATUSY */
  --danger:#c23a2b;
  --ok:#2fd47a;

  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --max:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: none;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(
      rgba(6,12,7,.75),
      rgba(6,12,7,.85)
    ),
    url("img/tlo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* =========================
   LOGO SERWERA (POD NAV)
   ========================= */
.server-logo-wrap{
  display:flex;
  justify-content:center;
  margin:18px 0 26px;
}

.server-logo{
  max-width:550px;
  width:100%;
  height:auto;
  filter:
    drop-shadow(0 10px 30px rgba(0,0,0,.65));
}

/* Mobile */
@media (max-width:600px){
  .server-logo{
    max-width:200px;
  }
}
/* =========================
   LINKI
   ========================= */
a{color:var(--accent); text-decoration:none}
a:hover{
  color:var(--accent2);
  text-decoration:underline;
}

/* =========================
   LAYOUT
   ========================= */
.container{max-width:var(--max); margin:0 auto; padding:28px 16px 60px}

.header{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:40px;
  height:40px;
  border-radius:12px;
  background: linear-gradient(135deg, #2fd47a, #d6b563);
  box-shadow: var(--shadow);
}

.brand h1{font-size:18px; margin:0}
.brand p{margin:0; color:var(--muted); font-size:13px}

.nav{display:flex; gap:10px; flex-wrap:wrap}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
}
.chip:hover{
  background: rgba(214,181,99,.15);
  text-decoration:none;
}

/* =========================
   KARTY / GRID
   ========================= */
.card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
@media (max-width:900px){
  .grid-2{grid-template-columns:1fr}
}

.h2{
  margin:0 0 12px 0;
  font-size:16px;
  color:var(--accent2);
}

.muted{color:var(--muted)}
.sep{
  height:1px;
  background:var(--border);
  margin:14px 0;
}

/* =========================
   FORMULARZE
   ========================= */
label{
  display:block;
  margin:10px 0 6px;
  color:var(--muted);
  font-size:13px;
}

input,select,textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(6,12,7,.75);
  color:var(--text);
  outline:none;
}

input:focus,select:focus,textarea:focus{
  border-color: rgba(47,212,122,.55);
  box-shadow: 0 0 0 4px rgba(47,212,122,.18);
}

/* =========================
   PRZYCISKI
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid rgba(214,181,99,.45);
  background: linear-gradient(135deg, #2fd47a, #d6b563);
  color:#07110a;
  font-weight:900;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:translateY(1px)}

/* NAWIGACJA / CHIPY */
.chip{
  transition:
    background-color .25s ease,
    border-color .25s ease,
    color .25s ease,
    box-shadow .25s ease,
    transform .15s ease;
}

.chip:hover{
  background: rgba(214,181,99,.18);
  border-color: rgba(214,181,99,.45);
  transform: translateY(-1px);
}

/* PRZYCISKI */
.btn,
.download-btn,
.social-btn{
  transition:
    background .25s ease,
    border-color .25s ease,
    color .25s ease,
    box-shadow .25s ease,
    transform .15s ease;
}

.btn:hover,
.download-btn:hover,
.social-btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 10px 25px rgba(0,0,0,.45),
    0 0 14px rgba(214,181,99,.25);
}

/* LINKI TEKSTOWE (np. w tabelach) */
a{
  transition:
    color .2s ease,
    text-decoration-color .2s ease;
}
/* =========================
   BADGE
   ========================= */
.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
}

/* =========================
   ALERTY
   ========================= */
.alert{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background: rgba(255,255,255,.04);
}
.alert.err{
  border-color: rgba(194,58,43,.55);
  color:#ffd6d0;
}
.alert.ok{
  border-color: rgba(47,212,122,.55);
  color:#caffdf;
}

/* =========================
   TABELE
   ========================= */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}

.table th,.table td{
  padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}

.table th{
  color:var(--accent2);
  font-weight:700;
  background: rgba(255,255,255,.03);
}

.table tr:last-child td{border-bottom:none}
.table a{font-weight:700}

/* =========================
   STATUS SERWERA
   ========================= */
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  font-weight:800;
}

.status-on{
  background: rgba(47,212,122,.22);
  border-color: rgba(47,212,122,.55);
  color:#caffdf;
}

.status-off{
  background: rgba(194,58,43,.22);
  border-color: rgba(194,58,43,.55);
  color:#ffd6d0;
}

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background: currentColor;
}

/* =========================
   DOWNLOAD
   ========================= */
.download-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px;
  border-radius:18px;
  border:1px solid rgba(214,181,99,.35);
  background:
    linear-gradient(135deg, rgba(47,212,122,.22), rgba(214,181,99,.22)),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.download-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.download-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  background: linear-gradient(135deg, #2fd47a, #d6b563);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  color:#07110a;
  font-weight:900;
}

.download-title{
  font-size:18px;
  font-weight:900;
  color:var(--accent2);
}

.download-desc{
  color:var(--muted);
  font-size:13px;
}

.download-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid rgba(214,181,99,.45);
  background: linear-gradient(135deg, #2fd47a, #d6b563);
  color:#07110a;
  font-weight:900;
  text-decoration:none;
}
.download-btn:hover{
  filter:brightness(1.08);
  text-decoration:none;
}
/* =========================
   SOCIAL MEDIA
   ========================= */
.socials{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

@media (max-width:700px){
  .socials{grid-template-columns:1fr}
}

.social-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-radius:18px;
  border:1px solid rgba(214,181,99,.35);
  background:
    linear-gradient(135deg, rgba(47,212,122,.18), rgba(214,181,99,.18)),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.social-card:hover{
  transform: translateY(-4px);
  box-shadow:
    0 14px 35px rgba(0,0,0,.55),
    0 0 18px rgba(214,181,99,.25);
}

.social-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.social-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:900;
  color:#ffffff; /* ikona biała jak w brandach */
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* Ikony – brand colors (gradient zostaje) */
.social-facebook{
  background: linear-gradient(135deg, #1877F2, #0d5bd7);
}

.social-discord{
  background: linear-gradient(135deg, #5865F2, #404eed);
}

.social-title{
  font-size:16px;
  font-weight:900;
  color:var(--accent2);
}

.social-desc{
  font-size:13px;
  color:var(--muted);
}

/* Przycisk bazowy (dalej spójny z Twoim stylem) */
.social-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid rgba(214,181,99,.45);
  background: linear-gradient(135deg, #2fd47a, #d6b563);
  color:#07110a;
  font-weight:900;
  text-decoration:none;
}
.social-btn:hover{
  filter:brightness(1.08);
  text-decoration:none;
  color:#ffffff;
}

/* Brandowe przyciski – gradient zostaje, kolory pod platformę */
.social-btn.facebook{
  border-color: rgba(24,119,242,.55);
  background:
    linear-gradient(135deg, #1877F2, #0d5bd7),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  color:#ffffff;
}

.social-btn.discord{
  border-color: rgba(88,101,242,.55);
  background:
    linear-gradient(135deg, #5865F2, #404eed),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  color:#ffffff;
}

/* Hover glow pod konkretny serwis */
.social-btn.facebook:hover{
  box-shadow:
    0 10px 25px rgba(0,0,0,.45),
    0 0 18px rgba(24,119,242,.35);
}

.social-btn.discord:hover{
  box-shadow:
    0 10px 25px rgba(0,0,0,.45),
    0 0 18px rgba(88,101,242,.35);
}

/* Cały kafelek – rozjaśnij tekst na hover (jak miałeś) */
.social-card:hover .social-title,
.social-card:hover .social-desc{
  color:#ffffff;
}
.social-icon svg{
  width:26px;
  height:26px;
}
/* =========================
   STOPKA
   ========================= */
.footer{
  margin-top:22px;
  color:var(--muted);
  font-size:12px;
}
/* =========================
   METIN-LIKE ITEM GRID
   ========================= */

:root{
  --slot: 52px;
  --gap: 8px;
}

.slot-grid{
  display:grid;
  gap: var(--gap);
}

.slot-grid.eq{
  grid-template-columns: repeat(5, var(--slot));
}

.slot-grid.inv{
  grid-template-columns: repeat(5, var(--slot));
}

.slot{
  width: var(--slot);
  height: var(--slot);
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
  position: relative;
  overflow: visible;
}

.slot:hover{
  border-color: rgba(214,181,99,.55);
  box-shadow:
    0 10px 25px rgba(0,0,0,.45),
    0 0 14px rgba(214,181,99,.18);
}

.item{
  position:absolute;
  inset:4px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:900;
  font-size:12px;
  color:#07110a;
  background: rgba(214,181,99,.12);
  border: 1px solid rgba(214,181,99,.25);
  cursor: default;
}

.item img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
}

.item .count{
  position:absolute;
  right:6px;
  bottom:6px;
  padding:2px 6px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.25);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size:11px;
  font-weight:900;
}

.tooltip{
  position:absolute;
  left: calc(100% + 10px);
  top: -10px;
  width: 320px;
  z-index: 20;
  display:none;

  border-radius: 14px;
  border:1px solid rgba(214,181,99,.35);
  background:
    linear-gradient(135deg, rgba(47,212,122,.12), rgba(214,181,99,.12)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 18px 45px rgba(0,0,0,.65);
  padding: 12px;
}

.slot:hover .tooltip{ display:block; }

.tt-title{
  font-weight:900;
  color: var(--accent2);
  margin-bottom:6px;
}

.tt-meta{
  color: var(--muted);
  font-size:12px;
  margin-bottom:8px;
}

.tt-lines{
  margin:0;
  padding-left: 16px;
}

.tt-lines li{
  margin:6px 0;
}

/* Responsywność tooltipa (na mobile pokaż pod slotem) */
@media (max-width:900px){
  .tooltip{
    left: 0;
    top: calc(100% + 8px);
    width: 92vw;
    max-width: 360px;
  }
}
/* =========================
   FORCE BRAND COLORS (FB / DISCORD) – MUST BE LAST
   ========================= */

/* Najpierw "wyzeruj" social-btn tylko w kafelkach social */
.social-card a.social-btn{
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(214,181,99,.35) !important;
  color: var(--text) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.35) !important;
  filter: none !important;
}

/* FACEBOOK */
.social-card a.social-btn.facebook{
  background: linear-gradient(135deg, #1877F2, #0d5bd7) !important;
  border-color: rgba(24,119,242,.75) !important;
  color: #fff !important;
}

.social-card a.social-btn.facebook:hover{
  background: linear-gradient(135deg, #0d5bd7, #1877F2) !important;
  border-color: rgba(24,119,242,.95) !important;
  color:#fff !important;
  filter: none !important;
  box-shadow:
    0 14px 35px rgba(24,119,242,.55),
    0 0 22px rgba(24,119,242,.45) !important;
}

/* DISCORD */
.social-card a.social-btn.discord{
  background: linear-gradient(135deg, #5865F2, #404eed) !important;
  border-color: rgba(88,101,242,.75) !important;
  color: #fff !important;
}

.social-card a.social-btn.discord:hover{
  background: linear-gradient(135deg, #404eed, #5865F2) !important;
  border-color: rgba(88,101,242,.95) !important;
  color:#fff !important;
  filter: none !important;
  box-shadow:
    0 14px 35px rgba(88,101,242,.55),
    0 0 22px rgba(88,101,242,.45) !important;
}
