/**
 * Gamers Arena — dark frontend visual redesign
 * Loaded after style.css so tokens and polish win without a full rewrite.
 */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --heading-font: "Outfit", sans-serif;
  --body-font: "Outfit", sans-serif;
  --primary-color: 45, 196, 184;
  --body-color: #b4bac8;
  --heading-color: 244, 246, 250;
  --black: 12, 15, 21;
  --btn-hover-bg: rgb(var(--primary-color), 0.85);
  --btn-hover-bg2: #0f766e;
  --light-gray: #3a4254;
  --white: 255, 255, 255;
  --white-color: #f4f6fa;
  --soft-blue: #7dd3c7;
  --grayish-violet: #1e2533;
  --soft-green: #c8f06a;
  --moderate-lime-green: #6aad3a;
  --soft-red: 216, 42, 104;
  --lime-gray: #6b7280;
  --vivid-orange: #fb8a3c;
  --soft-magenta: 45, 196, 184;
  --yellow: #f5d76e;
  --orange: #ffb84d;
  --input-color: #181d28;
  --input-color2: #181d28;
  --bg-color1: #0c0f15;
  --bg-color2: #12161e;
  --bg-color3: #1a2030;
  --bg-color4: #141a24;
  --border-color1: rgba(244, 246, 250, 0.1);
  --border-color2: rgba(244, 246, 250, 0.16);
  --border-color3: rgba(244, 246, 250, 0.06);
  --shadow1: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.28);
  --shadow2: 0 0.25rem 1rem rgba(0, 0, 0, 0.35);
  --shadow3: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
  --transition: all 0.25s ease;
  color-scheme: dark;
}

/* Light appearance on the dark template */
body.light-theme {
  --primary-color: 15, 158, 148;
  --body-color: #4a4f5c;
  --heading-color: 18, 22, 30;
  --black: 18, 22, 30;
  --white: 255, 255, 255;
  --white-color: #fff;
  --input-color: #ffffff;
  --input-color2: #ffffff;
  --bg-color1: #f7f8fb;
  --bg-color2: #ffffff;
  --bg-color3: #eef1f6;
  --bg-color4: #ffffff;
  --border-color1: rgba(18, 22, 30, 0.1);
  --border-color2: rgba(18, 22, 30, 0.16);
  --border-color3: rgba(18, 22, 30, 0.08);
  --shadow1: 0 0.375rem 0.75rem rgba(18, 22, 30, 0.06);
  --shadow2: 0 0.25rem 1rem rgba(18, 22, 30, 0.1);
  --shadow3: 0 1rem 2.5rem rgba(18, 22, 30, 0.12);
  color-scheme: light;
  background-color: var(--bg-color1);
  color: var(--body-color);
}

body.light-theme .form-control,
body.light-theme .form-select,
body.light-theme .form-label {
  color: rgb(var(--heading-color));
}

body.light-theme .form-control,
body.light-theme .form-select {
  background-color: var(--input-color);
  border-color: var(--border-color1);
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme .product-box .text-box .title {
  color: rgb(var(--heading-color));
}

body {
  font-family: var(--body-font);
  background-color: var(--bg-color1);
  color: var(--body-color);
  text-wrap: pretty;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: rgb(var(--heading-color));
}

.cmn-btn {
  background-color: rgb(var(--primary-color));
  color: #0c0f15;
  border-radius: 12px;
  font-weight: 700;
}

.cmn-btn:hover {
  background-color: rgb(var(--primary-color), 0.88);
  color: #0c0f15;
  box-shadow: 0 8px 24px rgba(45, 196, 184, 0.28);
}

.cmn-btn2 {
  border-radius: 12px;
  color: rgb(var(--heading-color));
}

.cmn-btn4 {
  color: #0c0f15;
  border-radius: 12px;
}

.product-box {
  background-color: var(--bg-color3);
  border: 1px solid var(--border-color1);
  border-radius: 14px;
}

.product-box:hover {
  border-color: rgb(var(--primary-color), 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}

.slider-box,
.flash-deal-section-inner,
.right-box {
  border: 1px solid var(--border-color1);
  box-shadow: var(--shadow1);
}

.custom-navbar,
.header-top-section {
  background-color: rgba(12, 15, 21, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color1);
}

body.light-theme .custom-navbar,
body.light-theme .header-top-section {
  background-color: rgba(247, 248, 251, 0.92);
}

.hero-section {
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(45, 196, 184, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(255, 184, 77, 0.08), transparent 50%),
    var(--bg-color1);
  min-height: auto;
  padding-block: 2rem 2.5rem;
}

.section-subtitle {
  letter-spacing: 0.04em;
  text-transform: none;
  font-style: italic;
  font-weight: 500;
  color: rgb(var(--primary-color));
}

.form-control,
.form-select {
  border-radius: 12px;
  background-color: var(--input-color);
  color: rgb(var(--heading-color));
  border-color: var(--border-color1);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--bg-color2);
  color: rgb(var(--heading-color));
  border-color: rgb(var(--primary-color));
}

.form-label {
  color: rgb(var(--heading-color));
}

.footer-section,
.copyright-section {
  background-color: var(--bg-color2);
  border-top: 1px solid var(--border-color1);
}

/* Frontend theme toggle in nav */
.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color1);
  background: var(--bg-color3);
  color: rgb(var(--heading-color));
  cursor: pointer;
  transition: var(--transition);
}

.nav-theme-toggle:hover {
  color: rgb(var(--primary-color));
  border-color: rgb(var(--primary-color), 0.4);
}

.nav-theme-toggle #sun {
  display: none;
}

body.light-theme .nav-theme-toggle #moon {
  display: none;
}

body.light-theme .nav-theme-toggle #sun {
  display: inline-block;
}
