/* UXG Portal Frontend — static multi-page (no build) */
:root{
  --bg:#0b0d10;
  --panel:rgba(255,255,255,.04);
  --text:#e7edf5;
  --muted:#a9b4c4;
  --line:rgba(255,255,255,.10);
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --radius:18px;
  --accent:#7c5cff;
  --ok:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: linear-gradient(180deg, #07080a, var(--bg));
}
a{color:inherit; text-decoration:none}
.container{max-width:1150px; margin:0 auto; padding:0 18px}
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(11,13,16,.78);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; gap:14px; height:64px}
.brand{display:flex; align-items:center; gap:10px; font-weight:900}
.brand img{height:34px; width:auto}
.nav{display:flex; gap:10px; align-items:center; font-size:14px; color:var(--muted)}
.nav a{padding:10px 10px; border-radius:12px}
.nav a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.actions{display:flex; gap:10px; align-items:center}
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:7px 10px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size:12px; font-weight:800;
}
.dot{width:8px; height:8px; border-radius:999px; background: var(--warn)}
.dot.ok{background:var(--ok)}
.dot.bad{background:var(--bad)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px; border-radius:14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  transition: transform .06s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.16)}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(124,92,255,.55));
  border-color: rgba(124,92,255,.35);
}
.btn--primary:hover{border-color: rgba(124,92,255,.60)}
.btn--ghost{background: rgba(255,255,255,.03)}
.btn--danger{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35)}
.btn--small{padding:9px 10px; border-radius:12px; font-size:13px}
.hero{padding:34px 0 6px}
.hero__wrap{
  border-radius: 26px;
  border: 1px solid var(--line);
  overflow:hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero__bg{height: 280px; background: url("../img/hero.svg") center/cover no-repeat}
.hero__content{
  padding: 18px;
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap:14px;
  align-items:start;
}
.h1{font-size:44px; margin:8px 0 8px; line-height:1.05}
.lead{color:var(--muted); font-size:16px; line-height:1.6; max-width:54ch; margin:0}
.pill{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.20);
  color: var(--muted);
  font-size:12px;
  letter-spacing:.35px;
  font-weight:800;
}
.card{
  padding:18px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.card h2{margin:0 0 8px; font-size:18px}
.card p{margin:0; color:var(--muted); line-height:1.55}
.grid{display:grid; gap:12px}
.grid2{grid-template-columns: repeat(2, 1fr)}
.section{padding:18px 0 32px}
.h2{font-size:24px; margin:0 0 10px}
.muted{color:var(--muted)}
.small{font-size:12px; color:var(--muted)}
.footer{border-top:1px solid var(--line); padding:18px 0; background: rgba(0,0,0,.22); margin-top: 20px}
.footer__inner{display:flex; align-items:center; justify-content:space-between; gap:12px}
.game-card{
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow:hidden;
  background: var(--panel);
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
  transition: transform .12s ease, border-color .12s ease;
}
.game-card:hover{transform: translateY(-2px); border-color: rgba(255,255,255,.16)}
.game-card__img{height:180px; background-size:cover; background-position:center}
.game-card__body{padding:14px}
.game-card__title{font-weight:900; font-size:18px}
.game-card__desc{margin-top:6px; color:var(--muted); line-height:1.5; font-size:14px}
.game-card__actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}
.form{max-width: 520px; margin: 0 auto}
label{display:block; margin:10px 0 6px; font-size:13px; color:rgba(231,237,245,.8); font-weight:700}
input{
  width:100%;
  padding:12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
}
input:focus{border-color: rgba(124,92,255,.55)}
.row{display:flex; gap:12px; flex-wrap:wrap}
.row > *{flex:1}
.kv{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:12px;
  align-items:center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  font-weight:900;
  letter-spacing:.12em;
}
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.table th, .table td{
  text-align:left;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}
.table th{color: rgba(231,237,245,.75); font-size: 12px; text-transform: uppercase; letter-spacing:.08em}
.table tr:last-child td{border-bottom:none}
.toast{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17,21,26,.92);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show{opacity: 1; transform: translateX(-50%) translateY(-6px)}
@media (max-width: 980px){
  .hero__content{grid-template-columns:1fr}
  .h1{font-size:36px}
  .grid2{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .nav{display:none}
  .h1{font-size:32px}
}


/* Guest-locked game cards */
.game-card.locked{ opacity:.55; filter:grayscale(1); cursor:not-allowed; }
.game-card.locked:hover{ transform:none; }


/* === UXG Esports Clean Tweaks === */
.hero{
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap:18px;
  align-items:stretch;
}
.hero__content{padding:0 !important;}
.hero__img{
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.hero__img img{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .hero__img{ order: -1; }
}

/* Feature icons */
.card{ position:relative; }
.feat-icon{
  width: 46px;
  height: 46px;
  position: absolute;
  right: 14px;
  top: 14px;
  opacity: .95;
  filter: drop-shadow(0 10px 24px rgba(124,92,255,.25));
}

/* Badges on game cards */
.game-card{ position: relative; }
.badge{
  position:absolute;
  top:14px;
  right:14px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
  backdrop-filter: blur(8px);
}
a[data-badge="LIVE"] .badge{
  border-color: rgba(0,229,255,.24);
  box-shadow: 0 0 0 1px rgba(0,229,255,.12) inset;
}

/* Guest lock overlay */
.game-card.locked::after{
  content:"You need to login to view";
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight:900;
  text-align:center;
  backdrop-filter: blur(10px);
}


/* === Home layout fix (no double hero) === */
.home-hero{ padding-top: 30px; }
.home-hero__grid{
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  gap:16px;
  align-items:stretch;
}
.home-hero__title{ font-size: 44px; line-height: 1.02; margin: 10px 0 10px; }
.home-hero__media{
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.home-hero__media img{
  width:100%;
  height:auto;
  display:block;
}
@media (max-width: 980px){
  .home-hero__grid{ grid-template-columns: 1fr; }
  .home-hero__title{ font-size: 38px; }
}

/* Home game cards */
.games-grid{ margin-bottom: 16px; }
.game-card{
  position:relative;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.game-card:hover{ transform: translateY(-2px); border-color: rgba(124,92,255,.25); }
.game-cover{
  height: 180px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.game-inner{ padding: 14px; }
.game-title{ font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 4px; }

@media (max-width: 900px){
  .games-grid{ grid-template-columns: 1fr !important; }
  .game-cover{ height: 160px; }
}


/* === Cinematic background === */
body{
  background:
    linear-gradient(180deg, rgba(6,6,10,.65), rgba(6,6,10,.88)),
    url('/assets/img/cinematic/bg.webp') center/cover fixed,
    url('/assets/img/bg.svg') center/cover fixed;
}


/* If cinematic webp is missing, SVG cover still shows (2nd background layer). */
.game-cover{
  background-image:
    var(--cover-webp),
    var(--cover-fallback);
}

/* === UXG Logo fix (bigger + no crop/zoom) === */
.brand img{
  height: 64px !important;   /* mai mare */
  width: auto !important;    /* nu-l mai forta patrat */
  object-fit: contain !important; /* fara crop */
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(124,92,255,.35);
}

/* Navbar mai inalt sa incapa logo-ul */
.navbar{
  min-height: 86px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
