/* ======================================================================
   site.css — Universal Theme Layer (2025+)
   Works with all BidMystery themes (cyber, horror, vaporwave, retro, etc.)
   ----------------------------------------------------------------------
   ✦ Centers global layout (nav top, main middle, footer bottom)
   ✦ Keeps neon 3D cards & countdowns
   ✦ Uses theme tokens (--bg, --text, --accent)
   ✦ Fully responsive & accessible
   ✦ Future-proof utilities for Admin MAX + front-end pages
   ====================================================================== */

/* ---------------- ROOT SAFETY ---------------- */
:root {
  --page-max: 1280px;
  --pad: 20px;
  --transition-fast: .2s;
  --transition: .35s;
  --transition-slow: .6s;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ---------------- GLOBAL LAYOUT ---------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg, #0a0f1c);
  color: var(--text, #e6f7ff);
  font-family: var(--theme-font-family, system-ui, sans-serif);
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--pad);
}

/* NAVBAR top-center */
.site-nav {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure nav links are centered horizontally */
.site-nav .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* FOOTER bottom-center */
footer, .footer {
  margin-top: auto;
  text-align: center;
  width: 100%;
  padding: 20px 0;
  font-size: .9rem;
  opacity: .85;
}

/* Centered sections (Profile, Address, etc.) */
main, .page, .form, .card, .panel {
  margin: 0 auto;
  max-width: 860px;
  width: 100%;
  display: block;
}

/* Titles / headers */
h1, h2, h3 {
  text-align: center;
  margin: 0.8rem 0;
  text-shadow: 0 0 8px var(--accent, rgba(0,255,195,.35));
}

/* Paragraph & text alignment for landing pages */
p.subhead, .hero, .intro {
  text-align: center;
  max-width: 900px;
  margin: 0.5rem auto 1rem;
  opacity: .9;
}

/* ---------------- NEO 3D CARDS ---------------- */
.neo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 16px;
  justify-items: center;
}
.neo-card {
  display: block;
  background: rgba(13,18,28,.65);
  border: 1px solid rgba(0,255,204,.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0,255,204,.06);
  text-decoration: none;
  color: #cfe;
  transform: translateZ(0);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}
.neo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 24px rgba(0,255,204,.12);
}
.neo-img {
  position: relative;
  aspect-ratio: 16/10;
  background: #0a0e16;
}
.neo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.neo-more {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font: 600 12px/1 system-ui;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.25);
  padding: 4px 6px;
  border-radius: 8px;
}
.neo-body { padding: 12px; }
.neo-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(0,255,204,.25);
}
.neo-desc {
  margin: .25rem 0 .75rem;
  opacity: .85;
  min-height: 2.6em;
}
.neo-kpis {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.neo-kpis div {
  padding: 8px;
  border: 1px dashed rgba(0,255,204,.25);
  border-radius: 10px;
}
.neo-kpis span {
  display: block;
  opacity: .8;
}
.neo-kpis b {
  display: block;
  font-size: 1.1rem;
  margin-top: 3px;
}
.neo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: .95;
}

/* ---------------- COUNTDOWN RINGS ---------------- */
svg.ring {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}
.ring circle.bg {
  stroke: rgba(0,255,204,.18);
  stroke-width: 8;
  fill: none;
}
.ring circle.fg {
  stroke: rgba(0,255,204,.85);
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset .25s ease;
}
.neo-left { opacity: .9; }

/* ---------------- FORMS / PANELS ---------------- */
.form, form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1rem auto;
}
.input, input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.3);
  color: var(--text, #fff);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent, #00ffc3);
  outline: none;
}

/* ---------------- UTILITIES ---------------- */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.stack-12 > * + * { margin-top: 12px; }
.shadow { box-shadow: var(--shadow); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  body > .container { padding: 10px; }
  .neo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .neo-grid { grid-template-columns: 1fr; }
  .site-nav .nav-links { flex-direction: column; }
}

/* ---------------- ACCESSIBILITY ---------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------- THEME LIGHT SAFETY ---------------- */
:root[data-theme="light"] {
  --shadow: 0 10px 30px rgba(0,0,0,.1);
}


