/* =========================================================
   dark-index.css  -  LootShoot main page (index.html)
   - The .theme-toggle button styles work in light AND dark mode.
   - Everything else only applies when <html data-theme="dark">.
   Your style1.css is NOT changed.
========================================================= */

/* ---------- Theme toggle button (always visible) ---------- */

.theme-toggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe5e2;
  border-radius: 50%;
  background: #ffffff;
  color: #253038;
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-toggle:hover {
  border-color: #15965a;
  color: #15965a;
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

/* Light mode shows the moon, dark mode shows the sun */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 600px) {
  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .theme-toggle svg {
    width: 17px;
    height: 17px;
  }
}


/* ---------- Dark theme ---------- */

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #0a120e;
  color: #e9f4ee;
}

/* Header */

html[data-theme="dark"] .site-header {
  background: rgba(13, 23, 18, 0.94);
  border-bottom-color: #1d3226;
}

html[data-theme="dark"] .brand b { color: #f2faf5; }
html[data-theme="dark"] .brand b span { color: #3fd68b; }
html[data-theme="dark"] .brand small { color: #93a89b; }

html[data-theme="dark"] .site-header nav a { color: #9bb0a4; }
html[data-theme="dark"] .site-header nav a:hover { color: #3fd68b; }

/* Buttons */

html[data-theme="dark"] .button-green {
  background: #0f7a48;
  box-shadow: 0 8px 24px rgba(15, 122, 72, 0.35);
}

html[data-theme="dark"] .button-green:hover {
  background: #0c6a3e;
}

html[data-theme="dark"] .button-outline {
  background: transparent;
  border-color: #2f4d3d;
  color: #e9f4ee;
}

html[data-theme="dark"] .button-outline:hover {
  border-color: #3fd68b;
  color: #3fd68b;
}

html[data-theme="dark"] .theme-toggle {
  background: #111d17;
  border-color: #2f4d3d;
  color: #e9f4ee;
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: #3fd68b;
  color: #3fd68b;
}

/* Hero */

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 82% 15%, rgba(37, 194, 122, 0.22), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(37, 194, 122, 0.08), transparent 40%),
    #0a120e;
  border-bottom-color: #1d3226;
}

html[data-theme="dark"] .grid-texture { opacity: 0.18; }

html[data-theme="dark"] .status {
  background: #111d17;
  border-color: #28442f;
  color: #7fe0ae;
  box-shadow: none;
}

html[data-theme="dark"] .hero h1 { color: #f2faf5; }
html[data-theme="dark"] .hero h1 em { color: #3fd68b; }
html[data-theme="dark"] .hero p { color: #9bb0a4; }

/* Trust card */

html[data-theme="dark"] .trust-card {
  background: #111d17;
  border-color: #223a2d;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .trust-row { border-bottom-color: #1d3226; }

html[data-theme="dark"] .trust-row:hover {
  background: #16251d;
  border-color: #2c5a40;
  box-shadow: none;
}

html[data-theme="dark"] .trust-icon {
  background: #143324;
  color: #3fd68b;
}

html[data-theme="dark"] .trust-row h4 { color: #e9f4ee; }
html[data-theme="dark"] .trust-row p { color: #9bb0a4; }

/* Sections */

html[data-theme="dark"] .section { background: #0a120e; }

html[data-theme="dark"] .dark-section {
  background: #0d1712;
  border-top-color: #1d3226;
  border-bottom-color: #1d3226;
}

html[data-theme="dark"] .dark-section h2 { color: #f2faf5; }
html[data-theme="dark"] .dark-section h2 strong { color: #3fd68b; }

html[data-theme="dark"] .steps article {
  background: #111d17;
  border-color: #223a2d;
  box-shadow: none;
}

html[data-theme="dark"] .steps article:hover {
  background: #16251d;
  border-color: #2c5a40;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .steps article i {
  background: linear-gradient(145deg, #0f7a48, #15965a);
}

html[data-theme="dark"] .steps h3 { color: #e9f4ee; }
html[data-theme="dark"] .steps p { color: #9bb0a4; }

/* FAQ (already dark in light mode, made a little darker) */

html[data-theme="dark"] .faq-section { background: #070d0a; }
html[data-theme="dark"] .faq-section h2 { color: #f2faf5; }

/* Footer */

html[data-theme="dark"] .footer { color: #93a89b; }
html[data-theme="dark"] .footer b { color: #e9f4ee; }
html[data-theme="dark"] .footer b span { color: #3fd68b; }
html[data-theme="dark"] .footer small { color: #93a89b; }
html[data-theme="dark"] .footer a { color: #9bb0a4; }
html[data-theme="dark"] .footer a:hover { color: #3fd68b; }

/* ---------- Popups: sign up, sign in, forgot password ---------- */

html[data-theme="dark"] .modal-backdrop { background: rgba(0, 0, 0, 0.62); }

html[data-theme="dark"] .modal {
  background: #111d17;
  border-color: #223a2d;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .modal h2,
html[data-theme="dark"] .seller-modal h2,
html[data-theme="dark"] .signin-modal h2,
html[data-theme="dark"] .forgot-modal h2 {
  color: #f2faf5;
}

html[data-theme="dark"] .modal h2 span,
html[data-theme="dark"] .seller-highlight {
  color: #3fd68b;
}

html[data-theme="dark"] .modal-close { color: #9bb0a4; }

html[data-theme="dark"] .modal label,
html[data-theme="dark"] .seller-form label,
html[data-theme="dark"] .signin-form label,
html[data-theme="dark"] .forgot-modal label {
  color: #9bb0a4;
}

html[data-theme="dark"] .seller-form input[type="text"],
html[data-theme="dark"] .seller-form input[type="email"],
html[data-theme="dark"] .seller-form input[type="password"],
html[data-theme="dark"] .seller-form input[type="tel"],
html[data-theme="dark"] .signin-form input[type="text"],
html[data-theme="dark"] .signin-form input[type="email"],
html[data-theme="dark"] .signin-form input[type="password"],
html[data-theme="dark"] .forgot-modal input {
  background: #0d1712;
  border-color: #2a4535;
  color: #e9f4ee;
}

html[data-theme="dark"] .seller-form input::placeholder,
html[data-theme="dark"] .signin-form input::placeholder,
html[data-theme="dark"] .forgot-modal input::placeholder {
  color: #6f8a7b;
}

html[data-theme="dark"] .phone-field {
  border-color: #2a4535;
  background: #0d1712;
}

html[data-theme="dark"] .phone-prefix {
  background: #16251d;
  border-right-color: #2a4535;
  color: #e9f4ee;
}

html[data-theme="dark"] .checkbox-copy { color: #9bb0a4; }
html[data-theme="dark"] .checkbox-highlight { color: #3fd68b; }

html[data-theme="dark"] .password-error {
  background: #3a1a1a;
  border-color: #a03a3a;
  color: #ff9b9b;
}

html[data-theme="dark"] .forgot-password { color: #3fd68b; }
html[data-theme="dark"] .signin-modal small a { color: #3fd68b; }

/* The "Don't have an account?" line has an inline grey colour */
html[data-theme="dark"] .signin-modal small { color: #9bb0a4 !important; }

html[data-theme="dark"] .reset-subtitle { color: #9bb0a4; }
html[data-theme="dark"] .reset-subtitle strong { color: #e9f4ee; }

html[data-theme="dark"] .otp-input,
html[data-theme="dark"] .forgot-modal input.otp-input {
  background: #0d1712;
  border-color: #2a4535;
  color: #e9f4ee;
}

html[data-theme="dark"] .otp-input:focus,
html[data-theme="dark"] .forgot-modal input.otp-input:focus {
  background: #111d17;
  border-color: #3fd68b;
}
