/* ==========================================================================
   Noobs On The Run - shared site stylesheet
   Replaces the per-page inline <style> blocks that used to be duplicated
   across every page. One file, one source of truth.
   ========================================================================== */

:root {
  --bg: #0a0d0a;
  --bg-elevated: rgba(18, 22, 16, .72);
  --bg-elevated-solid: #12160f;
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, .14);
  --accent-border: rgba(57, 255, 20, .35);
  --text: #eef1ec;
  --text-muted: #a6b0a3;
  --danger: #ff4d4d;
  --info: #2fb4ff;
  --border: rgba(115, 118, 128, .35);
  --radius: 14px;
  --font-heading: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-image:
    linear-gradient(180deg, rgba(10,13,10,.88) 0%, rgba(10,13,10,.94) 60%, rgba(10,13,10,1) 100%),
    var(--page-bg, url("../image/bg.jpg"));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: .5px;
  text-shadow: 2px 2px 6px rgba(0,0,0,.6);
  margin: 0 0 .5em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ---------- Top navigation ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, .92);
  border-bottom: 1px solid var(--accent-border);
  padding: 0 20px;
  backdrop-filter: blur(6px);
}

.topnav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.topnav .brand img { height: 34px; display: block; }

.wipe-countdown { text-align: center; font-family: var(--font-heading); line-height: 1.2; }
.wipe-countdown-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.wipe-countdown-time {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent) !important;
  text-shadow: 0 0 10px rgba(57, 255, 20, .8);
}
@media (max-width: 860px) {
  .wipe-countdown { display: none; }
}

.topnav .nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.topnav a, .topnav summary {
  color: #f2f2f2;
  text-align: center;
  padding: 18px 16px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: background-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.topnav a:hover, .topnav summary:hover { background-color: var(--accent-soft); color: var(--accent); }

.topnav a.active, .topnav summary.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

.topnav a.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topnav a.cta img { width: 20px; height: 20px; }

/* Dashboard tab dropdown (Modules) - same <details>/<summary> mechanism
   as the Download dropdown on Dashboard.php's hero, just styled to sit
   inline in the nav bar like the other tabs instead of a button row. */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-elevated-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 180px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-dropdown-menu a {
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
}
.nav-dropdown-menu a:hover { background: var(--accent-soft); color: var(--accent); }

/* Signed-in customer account block in the nav (email + sign out),
   visible site-wide once logged in - replaces the Dashboard-page-only
   "Login" link so a signed-in visitor always sees which account they're
   using and can sign out from anywhere. ".topnav .nav-account-*"
   (2 classes) deliberately outranks ".topnav a" (1 class + 1 element) so
   these don't inherit that rule's big padding/centered text. */
.nav-account {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
  line-height: 1.3;
}
.topnav .nav-account-email {
  padding: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.topnav .nav-account-email:hover { color: var(--accent); background: none; }
.topnav .nav-account-logout {
  padding: 0;
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
}
.topnav .nav-account-logout:hover { color: var(--accent); background: none; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  color: var(--accent);
  font-size: 28px;
  cursor: pointer;
  padding: 8px 4px;
}

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .topnav { flex-wrap: wrap; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-toggle:checked ~ .nav-links {
    max-height: 600px;
    padding-bottom: 10px;
  }
  .topnav a, .topnav summary { padding: 14px 10px; text-align: left; }
  .nav-dropdown-menu { position: static; margin: 4px 0 4px 14px; border: none; background: none; padding: 0; }
}

/* ---------- Layout helpers ---------- */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 0 30px rgba(57, 255, 20, .06);
}

.center { text-align: center; }

.eyebrow {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .5px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #06250a;
  box-shadow: 0 0 18px rgba(57, 255, 20, .35);
}

.btn-primary:hover { box-shadow: 0 0 26px rgba(57, 255, 20, .55); }

.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn-outline:hover { background: var(--accent-soft); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Download Now / View on GitHub split button (Dashboard.php) - a <details>
   dropdown so it needs no JS, matching the site's other lightweight-HTML
   conventions (the mobile nav toggle is a checkbox for the same reason). */
.download-dropdown { position: relative; display: inline-block; }
.download-dropdown summary { list-style: none; }
.download-dropdown summary::-webkit-details-marker { display: none; }
.download-dropdown[open] summary.btn-outline { background: var(--accent-soft); }
.download-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-elevated-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 230px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.download-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.download-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.download-menu .muted-note { padding: 2px 14px 6px; font-size: 12px; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 70px;
  gap: 18px;
}

.hero .logo { max-width: min(560px, 90vw); }

.hero p.tagline {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
}

/* ---------- Status badge ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- Card grids (servers / staff) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s ease, transform .15s ease;
}

.card:hover { border-color: var(--accent-border); transform: translateY(-3px); }

.card h3 { margin: 0; }

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.card .meta span {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
}

.card .widget { border-radius: 8px; overflow: hidden; }
.card iframe { width: 100%; border: 0; display: block; }

.staff-card { text-align: center; align-items: center; }
.staff-card .role {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .5px;
}

/* ---------- Feature list (home page) ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Timeline (schedule page) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.03);
  border-radius: 0 8px 8px 0;
}
.timeline .date { font-family: var(--font-heading); font-weight: 700; min-width: 110px; }

/* Add class="completed" to a <li> once that wipe has happened. */
.timeline li.completed { border-left-color: var(--danger); }
.timeline li.completed .tag { color: var(--danger); }

.timeline .tag {
  margin-left: auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ---------- News entries ---------- */
.news-entry { border-bottom: 1px solid var(--border); padding-bottom: 22px; margin-bottom: 22px; }
.news-entry:last-child { border-bottom: 0; margin-bottom: 0; }
.news-entry .date { color: var(--accent); font-family: var(--font-heading); font-weight: 700; }
.news-entry ul { line-height: 1.6; }

/* ---------- Rules ---------- */
.rules ol { padding-left: 22px; line-height: 1.7; }
.rules ol > li { margin-bottom: 18px; font-weight: 700; }
.rules ul { font-weight: 400; margin-top: 8px; line-height: 1.6; }

/* ---------- Floating widgets (discord) ---------- */
.floating-discord {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}

@media (max-width: 700px) {
  .floating-discord { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.85);
  padding: 22px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Forms & tables (Dashboard customer account pages) ----------
   Same pattern the actual NOR Dashboard app uses (Files/app/static/css/
   style.css): every label wraps its input directly (<label>Text
   <input></label>) and is itself a flex column, so a field always stacks
   correctly regardless of anything else on the page, rather than relying
   on two separate sibling elements both happening to be block-level. No
   other label on this site wraps an input, so this is safe to make
   unscoped (.nav-toggle-label overrides display/color anyway - a class
   selector always beats this bare-tag one). */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.stacked-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.stacked-form input, .stacked-form select { width: 100%; }

input[type="text"], input[type="email"], input[type="password"] {
  box-sizing: border-box;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color-scheme: dark;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-border);
}

.btn-small {
  display: inline-block;
  width: auto;
  padding: 6px 12px;
  font-size: 13px;
  margin-top: 0;
}

.alert-error {
  background: rgba(255, 77, 77, .12);
  border: 1px solid rgba(255, 77, 77, .4);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-success {
  background: rgba(57, 255, 20, .1);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.secret-box {
  font-family: monospace;
  background: rgba(255, 255, 255, .04);
  padding: 10px;
  border-radius: 8px;
  word-break: break-all;
  letter-spacing: 1px;
  margin: 10px 0;
}

.account-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.account-table th, .account-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.account-table th { color: var(--text-muted); font-weight: 600; }
.tag-active { color: var(--accent); }
.tag-suspended { color: var(--danger); }
.tag-pending { color: #e8b339; }

/* Click-to-copy license key cell - same behavior as Admin/Loglice.php's
   keys table, just using the site's shared accent variable instead of a
   hardcoded color. */
.key-cell { font-family: monospace; font-size: 11px; cursor: pointer; }
.key-cell:hover { color: var(--accent); }
.key-cell.copied { color: var(--accent); }

/* Generic <details>/<summary> collapse used for "Change Password" and
   "Create Account" - same list-style-free treatment as the download
   dropdown above, just not scoped to it. */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
