/* ==========================================================================
   NamenyLan - design rendszer
   Sotet, neon-aurora tema. Minden mozgas ugyanabbol a ket gorbebol dolgozik,
   igy az egesz oldal egysegesen "puha".
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg: #05060c;
  --bg-2: #080a14;
  --panel: rgba(17, 20, 34, .66);
  --panel-2: rgba(23, 27, 45, .85);
  --solid: #11141f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);

  --txt: #eef1fa;
  --txt-2: #a4abc7;
  --txt-3: #666e8f;

  --acc: #22e0ff;
  --acc-2: #8b5cf6;
  --acc-3: #ff4d94;
  --ok: #34e2a8;
  --warn: #ffc247;
  --bad: #ff5a78;

  --grad: linear-gradient(115deg, var(--acc) 0%, var(--acc-2) 52%, var(--acc-3) 100%);
  --r: 18px;
  --r-s: 12px;

  /* Egyetlen kozos gorbe - ettol lesz egyseges az egesz felulet mozgasa */
  --e: cubic-bezier(.22, 1, .36, 1);
  --e-soft: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Hatter: mozgo aurora + racs + szemcse ---------- */

.bg-layer { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }

.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  will-change: transform;
}
.blob.b1 { width: 62vw; height: 62vw; background: #0e7fa8; top: -22vw; left: -14vw; animation: drift1 26s ease-in-out infinite; }
.blob.b2 { width: 54vw; height: 54vw; background: #5b2fbd; top: -8vw; right: -16vw; animation: drift2 32s ease-in-out infinite; }
.blob.b3 { width: 46vw; height: 46vw; background: #a3245c; bottom: -20vw; left: 22vw; animation: drift3 38s ease-in-out infinite; opacity: .34; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(7vw, 5vw) scale(1.12); }
  66% { transform: translate(-4vw, 8vw) scale(.94); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-8vw, 7vw) scale(1.08); }
  75% { transform: translate(3vw, -4vw) scale(.96); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(9vw, -7vw) scale(1.14); }
}

.bg-grid {
  position: fixed; inset: -50%; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 46% 40% at 50% 34%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 46% 40% at 50% 34%, #000 10%, transparent 72%);
  animation: gridPan 60s linear infinite;
}
@keyframes gridPan { to { background-position: 60px 60px; } }

/* Finom szemcse - eltunteti a nagy gradiensek savozodasat */
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Egermutatot koveto fenyfolt (csak egerrel, erintesen nem) */
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity .5s var(--e);
  background: radial-gradient(circle, rgba(34, 224, 255, .11), transparent 68%);
  transform: translate(-50%, -50%);
}
.cursor-glow.on { opacity: 1; }

/* ---------- Tipografia ---------- */

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.028em; font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 7.5vw, 5.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--txt-2); }
a { color: var(--acc); text-decoration: none; transition: color .25s var(--e); }
a:hover { color: #fff; }

.wrap { width: min(1220px, 92vw); margin: 0 auto; }
.mono { font-family: 'JetBrains Mono', monospace; }
.muted { color: var(--txt-3); }
.center { text-align: center; }

/* Gradiens szoveg lassu fenycsikkal */
.grad-txt {
  background: linear-gradient(115deg, var(--acc), var(--acc-2) 40%, var(--acc-3) 65%, var(--acc) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 250% 0; } }

.ico { display: inline-block; vertical-align: -.15em; flex: 0 0 auto; }
i[data-ico] { display: inline-flex; align-items: center; }

/* ---------- Navigacio ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(5, 6, 12, .4);
  border-bottom: 1px solid transparent;
  transition: background .45s var(--e), border-color .45s var(--e), height .3s var(--e);
}
.nav.solid { background: rgba(5, 6, 12, .88); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 70px; }

.logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.32rem;
  letter-spacing: -.04em; color: #fff; position: relative;
}
.logo span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--txt-2); font-size: .92rem; font-weight: 500;
  padding: 9px 15px; border-radius: 10px; position: relative;
  transition: color .25s var(--e);
}
.nav-links a::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 1.5px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--e); border-radius: 2px;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.btn::after { display: none; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  margin-left: auto; padding: 8px; border-radius: 9px;
}

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 13px; cursor: pointer;
  font-family: Inter, sans-serif; font-size: .95rem; font-weight: 600;
  background: rgba(255, 255, 255, .06); color: var(--txt);
  border: 1px solid var(--line-2); text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform .3s var(--e), background .3s var(--e),
              border-color .3s var(--e), box-shadow .3s var(--e), color .25s var(--e);
}
/* Fenycsik athalad a gombon hoverre */
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--e);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .11); color: #fff; border-color: var(--line-2); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:disabled::before { display: none; }

.btn-primary {
  background: var(--grad); color: #04050b; border-color: transparent; font-weight: 700;
  box-shadow: 0 10px 34px -14px rgba(34, 224, 255, .85);
}
.btn-primary:hover { color: #04050b; box-shadow: 0 18px 46px -14px rgba(34, 224, 255, .95); }
.btn-sm { padding: 8px 16px; font-size: .855rem; border-radius: 10px; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; border-radius: 15px; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255, 90, 120, .42); color: #ffa8b8; }
.btn-danger:hover { background: rgba(255, 90, 120, .16); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Kartyak ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  position: relative;
  transition: transform .45s var(--e), border-color .35s var(--e), box-shadow .45s var(--e);
}
.card-hover { will-change: transform; }
.card-hover:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .95);
}
/* Vilagito keret hoverre */
.card-glow::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .45s var(--e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card-glow:hover::after { opacity: .55; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt-2); white-space: nowrap;
}
.pill.ok { color: var(--ok); border-color: rgba(52, 226, 168, .4); background: rgba(52, 226, 168, .1); }
.pill.warn { color: var(--warn); border-color: rgba(255, 194, 71, .4); background: rgba(255, 194, 71, .1); }
.pill.bad { color: var(--bad); border-color: rgba(255, 90, 120, .4); background: rgba(255, 90, 120, .1); }
.pill.acc { color: var(--acc); border-color: rgba(34, 224, 255, .4); background: rgba(34, 224, 255, .1); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.dot.live { animation: pulse 1.8s var(--e-soft) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70% { box-shadow: 0 0 0 8px transparent; opacity: .6; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}

/* ---------- Szekciok es beuszas ---------- */

section { padding: 100px 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 50px; }
.sec-head .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 14px;
}
.sec-head .kicker::before {
  content: ''; width: 26px; height: 1.5px; background: var(--grad); border-radius: 2px;
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .85s var(--e), transform .85s var(--e);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-dir="left"] { transform: translateX(-34px); }
.reveal[data-dir="right"] { transform: translateX(34px); }
.reveal[data-dir="scale"] { transform: scale(.94); }

/* ---------- Fuggoleges lista / szalag ---------- */

.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; background: rgba(255, 255, 255, .02);
}
.marquee-in { display: flex; gap: 46px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-in { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Space Grotesk', sans-serif; font-size: .92rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--txt-3); white-space: nowrap;
}
.marquee span .ico { color: var(--acc); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Urlapok ---------- */

.field { margin-bottom: 20px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--txt-2); margin-bottom: 8px; }
.field label .req { color: var(--acc-3); }
.field .hint { font-size: .79rem; color: var(--txt-3); margin-top: 7px; line-height: 1.5; }

input, select, textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(0, 0, 0, .36); color: var(--txt);
  border: 1px solid var(--line); border-radius: var(--r-s);
  font-family: inherit; font-size: .95rem;
  transition: border-color .3s var(--e), box-shadow .3s var(--e), background .3s var(--e);
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(34, 224, 255, .13);
  background: rgba(0, 0, 0, .52);
}
input::placeholder, textarea::placeholder { color: var(--txt-3); }
textarea { resize: vertical; min-height: 96px; }
select option { background: var(--solid); color: var(--txt); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--acc); }
.check span { font-size: .88rem; color: var(--txt-2); }

/* ---------- Ertesites ---------- */

.toast-box { position: fixed; bottom: 26px; right: 26px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 400px; padding: 15px 19px;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-left: 3px solid var(--acc); border-radius: var(--r-s);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: .9rem; animation: toastIn .5s var(--e);
}
.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
.toast.out { animation: toastOut .35s var(--e) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(50px) scale(.94); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(50px) scale(.96); } }

/* ---------- Profilkep es cimke ---------- */

.ava {
  border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05); overflow: hidden;
}
.ava-txt { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; letter-spacing: -.02em; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px; font-size: .8rem;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  color: var(--txt-2); margin: 0 6px 6px 0;
  transition: all .28s var(--e);
}
.chip.on { background: rgba(34, 224, 255, .13); border-color: rgba(34, 224, 255, .4); color: var(--acc); }
.chip.pick { cursor: pointer; }
.chip.pick:hover { border-color: var(--acc); color: #fff; transform: translateY(-2px); }
.chip .x { cursor: pointer; opacity: .55; display: inline-flex; }
.chip .x:hover { opacity: 1; color: var(--bad); }

/* ---------- Sav, allapotok ---------- */

.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width 1.1s var(--e); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--txt-3); }
.empty-state .ic { color: var(--txt-3); opacity: .4; margin-bottom: 14px; display: block; }
.empty-state .ic svg { width: 44px; height: 44px; }

.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .16);
  border-top-color: var(--acc); border-radius: 50%; animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tablazat ---------- */

.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th {
  text-align: left; padding: 12px 13px; font-size: .73rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--txt-3);
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.tbl td { padding: 12px 13px; border-bottom: 1px solid var(--line); color: var(--txt-2); }
.tbl tr { transition: background .25s var(--e); }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .03); color: var(--txt); }
.tbl .num { font-family: 'JetBrains Mono', monospace; }

/* ---------- Agrajz ---------- */

.br-block { margin-bottom: 28px; }
.br-title {
  font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 12px;
}
.bracket { display: flex; gap: 32px; overflow-x: auto; padding: 10px 4px 24px; }
.br-round { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; min-width: 224px; }
.br-round > .rname {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--txt-3); text-align: center; font-weight: 700;
}
.match {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  transition: transform .3s var(--e), border-color .3s var(--e), box-shadow .3s var(--e);
}
.match:hover { border-color: var(--line-2); transform: translateX(3px); }
.match.live { border-color: var(--acc); box-shadow: 0 0 26px -8px rgba(34, 224, 255, .6); }
.match .m-lbl {
  font-size: .65rem; color: var(--txt-3); padding: 6px 11px 0;
  letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px;
}
.m-team { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: .88rem; }
.m-team:first-of-type { border-top: 0; }
.m-team .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt-2); }
.m-team .sc { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--txt-3); min-width: 20px; text-align: right; }
.m-team .sd { font-size: .66rem; color: var(--txt-3); font-family: 'JetBrains Mono', monospace; min-width: 16px; }
.m-team.win .nm { color: #fff; font-weight: 700; }
.m-team.win .sc { color: var(--acc); }
.m-team.lose { opacity: .48; }
.m-team.tbd .nm { color: var(--txt-3); font-style: italic; }

/* ---------- Lablec ---------- */

footer { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 40px; color: var(--txt-3); font-size: .88rem; }
footer .fin { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer a { color: var(--txt-2); }

/* ---------- Reszponziv ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 68px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(6, 7, 14, .98); border-bottom: 1px solid var(--line);
    padding: 10px; margin: 0; display: none;
    animation: dropIn .35s var(--e);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; width: 100%; }
  .nav-links a::after { display: none; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } }
  .toast-box { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
}
