/* =========================================================
   PokeEvolve — Pokémon Pokédex Premium Theme
   - Visual overhaul ONLY (keeps existing PHP/JS working)
   - Key compatibility selectors preserved:
       .loginBtn, .loginContainer, #countDownTimer
   ========================================================= */

/* ---------- Base / tokens ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:root{
  --bg0: #05070f;
  --bg1: #0a1022;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.18);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.56);

  /* Pokémon accents */
  --red: #FF3B3B;
  --yellow: #FFD54A;
  --blue: #2F8BFF;
  --purple: #7C4DFF;
  --cyan: #00E5FF;
  --green: #18E07E;

  --r1: 12px;
  --r2: 18px;
  --r3: 28px;

  --shadow: 0 14px 42px rgba(0,0,0,.45);
  --shadow2: 0 26px 86px rgba(0,0,0,.62);

  --container: 1180px;
  --pad: clamp(14px, 2vw, 22px);
}

/* ---------- Page ---------- */
body{
  margin: 0;
  color: var(--text);
  font: 400 15px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(47,139,255,.24), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(255,59,59,.16), transparent 60%),
    radial-gradient(900px 520px at 60% 100%, rgba(255,213,74,.10), transparent 62%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  overflow-x: hidden;
}

/* subtle grid (pokedex vibe) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 12%, #000 46%, transparent 74%);
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: rgba(255,255,255,.98); }

img{ max-width: 100%; height: auto; display: block; }

.container, .wrapper, main, #main{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

/* ---------- Pokémon “Pokéball” mark used by header/footer ---------- */
.ps-brand__mark{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-block;
  position: relative;
  background: linear-gradient(180deg, rgba(255,59,59,.95) 0 48%, rgba(255,255,255,.92) 48% 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.20);
}
.ps-brand__mark::before{
  content:"";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15,18,30,.92);
  box-shadow: 0 0 0 3px rgba(255,255,255,.75);
}
.ps-brand__mark::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(15,18,30,.85);
}

/* ---------- Buttons (ps-btn) ---------- */
.ps-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
  user-select: none;
}
.ps-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 16px 44px rgba(0,0,0,.42);
}
.ps-btn:active{ transform: translateY(0) scale(.99); }

.ps-btn--xl{ padding: 13px 18px; font-weight: 650; }

.ps-btn--primary{
  background: linear-gradient(45deg, rgba(255,59,59,.96), rgba(255,213,74,.92));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 70px rgba(255,59,59,.20);
}
.ps-btn--primary:hover{ filter: saturate(1.05); }

.ps-btn--soft{
  background: linear-gradient(45deg, rgba(47,139,255,.95), rgba(124,77,255,.92));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 70px rgba(47,139,255,.18);
}

.ps-btn--ghost{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}

/* Keep login behavior (selector used in JS) */
.loginBtn{ position: relative; overflow: hidden; }
.loginBtn::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(160px 90px at 20% 30%, rgba(0,229,255,.28), transparent 65%);
  opacity: 0;
  transition: opacity .18s ease;
}
.loginBtn:hover::after{ opacity: 1; }

/* Focus ring */
:where(a,button,input,select,textarea):focus{ outline: none; }
:where(a,button,input,select,textarea):focus-visible{
  box-shadow: 0 0 0 3px rgba(47,139,255,.22), 0 0 0 1px rgba(47,139,255,.25) inset;
  border-radius: 12px;
}

/* ---------- Nav ---------- */
.ps-wrap{ min-height: 100vh; }

.ps-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,10,16,.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.ps-nav__bar{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ps-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background .16s ease, transform .16s ease;
}
.ps-brand:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.ps-brand__text{ font-weight: 750; letter-spacing: .2px; }

.ps-nav__menu{
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.ps-nav__menu .menu,
.ps-nav__menu nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.ps-nav__menu a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.80);
  transition: background .16s ease, transform .16s ease, color .16s ease;
}
.ps-nav__menu a:hover{
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.96);
  transform: translateY(-1px);
}
.ps-nav__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* ---------- Hero (Pokémon landing) ---------- */
.ps-hero{
  position: relative;
  padding: clamp(28px, 5vw, 62px) 0 clamp(18px, 3vw, 32px);
}
.ps-hero__inner{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  border-radius: var(--r3);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(700px 420px at 18% 30%, rgba(47,139,255,.22), transparent 60%),
    radial-gradient(720px 420px at 78% 25%, rgba(255,59,59,.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(18px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}

/* Pokéball watermark */
.ps-hero__inner::before{
  content:"";
  position:absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  right: -220px;
  top: -220px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.10) 0 16%, transparent 17% 100%),
    linear-gradient(180deg, rgba(255,59,59,.18) 0 48%, rgba(255,255,255,.10) 48% 100%);
  border: 2px solid rgba(255,255,255,.10);
  filter: blur(.2px);
  opacity: .9;
}
.ps-hero__inner::after{
  content:"";
  position:absolute;
  left: -240px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(0,229,255,.10), transparent 70%);
  opacity: .9;
}

.ps-hero__badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  margin-bottom: 14px;
}

.ps-hero__title{
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: .2px;
  margin: 0 0 12px;
  font-weight: 850;
  text-wrap: balance;
}
.ps-hero__subtitle{
  color: rgba(255,255,255,.78);
  margin-bottom: 18px;
}

.ps-hero__cta{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 18px;
}

.ps-hero__countdown{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 12px;
}
.ps-hero__countdownLabel{
  color: rgba(255,255,255,.76);
  font-weight: 650;
}

/* Countdown id used by JS */
#countDownTimer{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

/* Social */
.ps-hero__social{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.ps-social{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.ps-social:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 44px rgba(0,0,0,.35);
}
.ps-social img{ width: 18px; height: 18px; }

/* ---------- Content shell (remove sidebar; left becomes full width) ---------- */
.ps-shell{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin: 18px auto 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
}

.feedContainer{ background: transparent !important; border: 0 !important; }

.leftPane{
  float: none !important;
  width: 100% !important;
}

/* Make “post/news” cards look modern without changing markup */
.well, .panel, .box, .widget, .post, .comment, .forum, .news, .article{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Better headings inside content */
h1,h2,h3,h4{ margin: 0 0 10px; letter-spacing: .2px; }
p{ margin: 0 0 12px; color: var(--muted); }

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select, textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.45); }
input:hover, select:hover, textarea:hover{ background: rgba(255,255,255,.07); }
input:focus, select:focus, textarea:focus{
  border-color: rgba(255,213,74,.45);
  box-shadow: 0 0 0 3px rgba(255,213,74,.18);
}

/* Login container (selector used by site) */
.loginContainer{
  border-radius: var(--r3);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(10,16,34,.82), rgba(10,16,34,.56));
  box-shadow: 0 24px 78px rgba(0,0,0,.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(16px, 2vw, 24px);
}

/* Tables */
table{
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
th, td{
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
}
th{
  font-weight: 750;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
}
tr:hover td{ background: rgba(255,255,255,.04); }

/* ---------- Footer ---------- */
.ps-footer{
  margin-top: 38px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(8,10,16,.60);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ps-footer__cta{
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.ps-footer__ctaInner{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ps-footer__ctaTitle{ font-weight: 850; font-size: 18px; }
.ps-footer__ctaSub{ color: rgba(255,255,255,.70); }
.ps-footer__ctaActions{ display:flex; gap: 10px; flex-wrap: wrap; }

.ps-footer__main{
  padding: 22px 0 26px;
}
.ps-footer__cols{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
}
.ps-footer__head{ font-weight: 800; margin-bottom: 10px; }
.ps-footer__link{
  display:block;
  padding: 8px 0;
  color: rgba(255,255,255,.74);
}
.ps-footer__link:hover{ color: rgba(255,255,255,.96); }
.ps-footer__fineprint{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin: 14px auto 0;
  color: rgba(255,255,255,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .ps-nav__bar{ flex-wrap: wrap; }
  .ps-nav__menu{ order: 3; justify-content: flex-start; width: 100%; }
  .ps-nav__actions{ order: 2; margin-left: auto; }
  .ps-footer__cols{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .ps-footer__cols{ grid-template-columns: 1fr; }
  .ps-hero__inner::before{ right: -300px; top: -280px; }
}

/* ---------- Optional: Hide legacy sidebar containers if still present ----------
   If your layout/aside.php is re-enabled later, these help keep it hidden.
*/
.rightPane, .pull-right.rightPane { display:none !important; }

