:root {
  --bg: #0f0f14;
  --bg-light: #f4f4f8;
  --text: #ffffff;
  --text-dark: #111;
  --primary: #7c3aed;
  --secondary: #a78bfa;
  --card: #1a1a24;
  --card-light: #ffffff;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
  
}

.font-mc {
  font-family: 'Minecraftia', sans-serif;
}

.font-normal {
  font-family: 'Poppins', sans-serif;
}
body.light {
  background: #f6f7fb;
  color: #1f2937;
}
header {
  padding: 80px 20px;
  text-align: center;
  background: radial-gradient(circle at top, var(--primary), transparent 60%);
}

.buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

button {
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: white;
  transition: transform .25s;
}

button:hover {
  transform: scale(1.08);
}

.toggle {
  background: transparent;
  border: 2px solid var(--primary);
}

/* ADMINISTRACJA */

.admin-section {
  padding: 80px 20px;
  text-align: center;
}

.admin-section h2 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 30px;
}

.admin-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.admin-scroll {
  z-index: 1;
  display: flex;
  gap: 25px;
  max-width: 900px;
  overflow-x: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

.admin-scroll::-webkit-scrollbar {
  display: none;
}

.admin-card {
  min-width: 190px;
  background: rgba(26,26,36,0.75);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform .25s, box-shadow .25s;
}

.admin-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(124,58,237,0.35);
}

/* ===== ADMIN CARD – TRYB JASNY ===== */
body.light .admin-card {
  background: #ffffff;
  border: 2px solid #e0e7ff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

body.light .admin-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(124,58,237,0.25);
  transform: translateY(-10px);
}

body.light .admin-card strong {
  color: #4c1d95;
}

.admin-card img {
  width: 100px;
  height: 100px;
  image-rendering: pixelated;
  margin-bottom: 10px;
}

.admin-card span {
  opacity: 0.75;
}

/* ===== STRZAŁKI ADMINÓW – BEZ KÓŁEK ===== */
.arrow {
  background: none;
  border: none;
  width: auto;
  height: auto;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}

.arrow img {
  width: 36px;
  height: 36px;
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
}

.arrow:hover img {
  opacity: 1;
  transform: scale(1.1);
}
bhbh

.arrow:hover {
  transform: scale(1.08);
}
.arrow.left img {
  --rot: -90deg;
  transform: rotate(var(--rot));
}

.arrow.right img {
  --rot: 90deg;
  transform: rotate(var(--rot));
}


.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* wyśrodkowanie */
  margin-top: 100px;
  padding: 40px 20px;
  text-align: center;
  opacity: 0.8;
  color: var(--text); /* kontakt niebieski już nie będzie */
}

.footer a {
  color: var(--text); /* normalny tekst, nie niebieski */
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
/* --- Menu górne --- */
.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--card);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 50px;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.top-menu ul {
  list-style: none;
  display: flex;
  gap: 50px; /* większe odstępy */
  margin: 0;
  padding: 0;
}

.top-menu li {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 5px 0;
}

.top-menu li:hover {
  color: #9b59b6; /* fiolet przy hover */
}

.top-menu li::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #9b59b6;
  transition: width 0.3s;
}

.top-menu li:hover::after {
  width: 100%;
}

/* przycisk tryb jasny/ciemny w prawym rogu */
.toggle-theme {
  /* zamiast margin-left: auto; */
  margin-left: 20px;  /* przesunięcie w lewo od prawego rogu */
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}


.toggle-theme:hover {
  background: #9b59b6;
  color: #fff;
}


/* popup pod menu */
.menu-popup {
  position: fixed;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  padding: 20px;
  display: none;
  z-index: 60;
  width: 320px;
  border-radius: 12px;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  text-align: left;
}
/* kontener regulaminu */
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border-radius: 10px;
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
}

.dropdown-menu a:hover {
  color: var(--secondary);
}

/* Regulamin – dokładnie jak Discord */
.nav-link.dropdown {
  display: inline-flex;        /* tak jak Discord */
  align-items: center;         /* wyrównanie pionowe */
  font-weight: 600;            /* pogrubienie */
  line-height: normal;         /* dopasowanie do Discord */
  padding: 0 12px;             /* takie same odstępy jak Discord */
  position: relative;          /* dla dropdown */
  cursor: pointer;
  transition: color 0.2s ease, text-decoration 0.2s ease; /* animacja Discord */
  user-select: none;           /* blokada zaznaczania tekstu */
}

/* hover – dokładnie jak Discord */
.nav-link.dropdown:hover {
  color: var(--secondary);     /* fiolet */
  text-decoration: underline;  /* podkreślenie */
}

/* dropdown menu */
.nav-link.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;                   /* zaraz pod linkiem */
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border-radius: 8px;
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, top 0.2s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 999;
}

.nav-link.dropdown .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: inherit;
}

.nav-link.dropdown .dropdown-menu a:hover {
  color: var(--secondary);
}

/* pokazanie dropdown przy hover */
.nav-link.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  top: 100%;
}
li.dropdown {
  position: relative; /* żeby dropdown działał */
}

li.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border-radius: 8px;
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, top 0.2s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 999;
}

li.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  top: 100%;
}

li.dropdown .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: inherit;
}

li.dropdown .dropdown-menu a:hover {
  color: var(--secondary);
}
/* wszystkie linki w top-menu normalnie wyglądają */
/* linki w pasku */
/* linky w top-menu */
/* linki w top-menu */
.top-menu li .nav-link {
  display: inline-block;
  color: var(--text);        /* normalny kolor tekstu */
  font-weight: 600;           /* pogrubienie */
  text-decoration: none;      /* brak podkreślenia normalnie */
  transition: color 0.2s ease;
  user-select: none;          /* blokada zaznaczania */
}

/* hover – dokładnie taki sam fiolet jak Discord */
.top-menu li:hover .nav-link {
  color: #9b59b6;    /* dokładnie #a78bfa */
}

/* animowane podkreślenie identycznie jak Discord */
.top-menu li::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #9b59b6; /* fiolet identyczny */
  transition: width 0.3s ease;
}

.top-menu li:hover::after {
  width: 100%;
}

/* dropdown menu – linki w dropdown */
li.dropdown .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text);      /* normalny kolor tekstu */
  transition: color 0.2s ease;
}

li.dropdown .dropdown-menu a:hover {
  color: #9b59b6  /* dokładnie fiolet #a78bfa */
}

.logo-left {
  position: absolute;
  left: 30px;
  display: flex;
  align-items: center;
}

.logo-left img {
  height: 36px;
  width: auto;
  user-select: none;
  pointer-events: none;
}


body.light .top-menu {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}


body.light .top-menu li {
  color: #222;
}

body.light .top-menu li:hover {
  color: var(--primary);
}

body.light .top-menu li::after {
  background: var(--primary);
}

body.light .top-menu li {
  color: #222;
}

body.light .top-menu li:hover {
  color: var(--primary);
}

body.light .top-menu li::after {
  background: var(--primary);
}
body.light .dropdown-menu {
  background: #ffffff;
  color: #111;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

body.light .dropdown-menu a:hover {
  background: #f1f1f5;
}
body.light .toggle-theme {
  border-color: #222;
  color: #222;
}

body.light .toggle-theme:hover {
  background: var(--primary);
  color: #fff;
}
.nav-link::after {
  height: 2px;
  bottom: -4px;
}
/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at top, #7c3aed55, transparent 60%),
    linear-gradient(180deg, #0f0f14, #0b0b10);
}

.hero-content {
  animation: fadeUp 1s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.glow {
  text-shadow: 0 0 25px #7c3aed88;
}

/* INFO BOX */
.online-box {
  display: inline-block;
  padding: 14px 26px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 14px;
  margin-bottom: 35px;
  backdrop-filter: blur(10px);
}

/* BUTTONS */
.primary-btn {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.outline-btn {
  background: transparent;
  border: 2px solid var(--primary);
}

.outline-btn:hover {
  background: var(--primary);
}
body.light header {
  background: radial-gradient(
    circle at top,
    rgba(124, 58, 237, 0.18),
    transparent 60%
  );
}
body.light .dropdown-menu {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
body.light button {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: white;
}

body.light .toggle-theme {
  background: transparent;
  border: 1px solid #c4b5fd;
  color: #4c1d95;
}
body.light .footer {
  color: #6b7280;
}
/* ===== FIX: strzałki adminów – TRYB JASNY ===== */
body.light .arrow {
  background: #ffffff;
  border: 2px solid #d1d5db;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

body.light .arrow img {
  filter: none;
  opacity: 0.85;
}


/* ===== FIX: link Regulamin – TRYB JASNY ===== */
body.light .top-menu .nav-link {
  color: #1f2937;
}

body.light .top-menu li:hover .nav-link {
  color: var(--primary);
}
/* ===== FIX: dropdown tekst – TRYB JASNY ===== */
body.light .dropdown-menu {
  color: #1f2937;
}

body.light .dropdown-menu a {
  color: #1f2937;
}

body.light .dropdown-menu a:hover {
  color: var(--primary);
}
.top-menu a {
  color: inherit;
}
/* ===== FOOTER EMAIL – TRYB JASNY ===== */
body.light .footer a {
  color: #4f46e5; /* czytelny fiolet */
  font-weight: 600;
}

body.light .footer a:hover {
  text-decoration: underline;
}
.footer a {
  color: var(--secondary);
}
/* ===== DISCORD BUTTON ===== */
/* ===== DLACZEGO MY ===== */
.why-us {
  padding: 80px 20px;
  text-align: center;
}

.why-us h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--secondary);
}

.why-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.why-card {
  background: var(--card);
  border-radius: 18px;
  padding: 30px 25px;
  border: 2px solid transparent;
  transition: 0.25s ease;
}

.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
}

.why-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 15px;
}

.why-card h3 {
  margin-bottom: 10px;
}

.why-card p {
  opacity: 0.8;
}

/* TRYB JASNY */
body.light .why-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

body.light .why-card:hover {
  border-color: var(--primary);
}
/* ===== REGULAMIN ===== */
.regulamin-content {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  line-height: 1.6;
}

.regulamin-content h2 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.regulamin-content ul {
  list-style: none; 
  padding-left: 0;
}

.regulamin-content li {
  margin-bottom: 8px;
}

body.light .regulamin-content {
  color: #111;
}
