/* =================================================
   ZSIGN THEME — global.css
   Upload to: /uploads/zsign/global.css
   Reference in header template via {$mybb->settings['bburl']}/uploads/zsign/global.css
================================================= */

:root {
  --bg-main: #0b0d12;
  --bg-card: #14171f;
  --bg-elev: #1a1e27;
  --border: #1f232d;
  --border-soft: #1a1d25;
  --accent: #ff8800;
  --accent-soft: #ffa733;
  --text-main: #e6e6e6;
  --text-muted: #9aa0a6;
  --text-dim: #6b7280;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-soft); }

/* ════════════════════════════════
   HEADER
════════════════════════════════ */

.zs-header {
  background: linear-gradient(180deg, #11141b 0%, #0e1016 100%);
  box-shadow: 0 2px 0 #000;
  position: sticky;
  top: 0;
  z-index: 200;
}

.zs-header-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 50px;
}

/* Main nav — orange line is border-bottom HERE, between nav and subnav */
.zs-main-nav {
  display: flex;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 3px 16px rgba(255,136,0,0.18);
}

.zs-main-nav a {
  font-size: 13px;
  padding: 17px 28px;
  display: block;
  white-space: nowrap;
  transition: background 0.15s;
  text-decoration: none;
}

.zs-main-nav a:nth-child(1) { color: #00cfff; }
.zs-main-nav a:nth-child(2) { color: #ffcc00; }
.zs-main-nav a:nth-child(3) { color: #ff8800; }
.zs-main-nav a:nth-child(4) { color: #44dd88; }
.zs-main-nav a:nth-child(5) { color: #4499ff; }
.zs-main-nav a:nth-child(6) { color: #00cfff; }

.zs-main-nav a:hover  { background: rgba(255,255,255,0.05); }
.zs-main-nav a.active { background: var(--bg-elev) !important; color: #fff !important; }

/* Sub nav */
.zs-sub-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 8px 0 10px;
}

.zs-sub-left { display: flex; align-items: center; }
.zs-sub-left a { color: var(--text-muted); margin-right: 20px; font-size: 12px; }
.zs-sub-left a:hover { color: #fff; }

.zs-sub-right { display: flex; gap: 18px; align-items: center; }

.zs-sub-right .link-submit {
  color: #44dd88; font-weight: 600; font-size: 12px;
  display: flex; align-items: center; gap: 4px;
}
.zs-sub-right .link-submit::before { content: "↑"; font-weight: 900; font-size: 13px; }

.zs-sub-right .link-library {
  color: #4499ff; font-weight: 600; font-size: 12px;
  display: flex; align-items: center; gap: 5px;
}
.zs-sub-right .link-library::before { content: "⊞"; }
.zs-sub-right a:hover { color: #fff; }

/* ════════════════════════════════
   HERO (portal top row)
════════════════════════════════ */

.zs-hero {
  max-width: 1350px;
  margin: 36px auto 20px;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 25px;
  align-items: start;
}

.zs-logo    { font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: 3px; line-height: 1; }
.zs-tagline { color: var(--text-muted); font-size: 11px; margin-top: 8px; letter-spacing: 1.5px; text-transform: uppercase; }

/* Staff picks */
.zs-staff-picks {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  min-height: 120px;
}

.zs-picks-title {
  font-weight: 700; color: var(--accent); font-size: 13px;
  letter-spacing: 0.6px; display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.zs-picks-title::before { content: "★"; }

/* Individual pick row */
.zs-pick-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.zs-pick-row:last-child { border-bottom: none; padding-bottom: 0; }
.zs-pick-icon { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--bg-elev); flex-shrink: 0; }
.zs-pick-name { font-weight: 600; font-size: 13px; color: var(--text-main); }
.zs-pick-sub  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.zs-pick-badge {
  margin-left: auto; background: var(--accent); color: #000;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; letter-spacing: 0.5px; white-space: nowrap;
}

/* ════════════════════════════════
   USER WIDGET
════════════════════════════════ */

.zs-user-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.zs-user-top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }

.zs-avatar {
  width: 58px; height: 58px; min-width: 58px; flex-shrink: 0;
  border-radius: 50%; background: #0d0f14; border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff; text-transform: uppercase;
}

.zs-user-name { font-weight: 700; font-size: 15px; color: var(--text-main); line-height: 1.2; }
.zs-role      { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 3px; }

.zs-quota-bar  { height: 4px; background: #1c2029; border-radius: 4px; margin: 14px 0 7px; }
.zs-quota-fill { height: 4px; background: var(--accent); border-radius: 4px; transition: width 0.4s; }
.zs-quota-label { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; }

.zs-user-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 13px; }

.zs-btn {
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 10px 8px; text-align: center; border-radius: 7px;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.3px;
  display: block; transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.zs-btn:hover { background: #202535; color: #fff; border-color: #2a2f3e; }

.zs-btn-primary { background: var(--accent); border-color: var(--accent); color: #000; }
.zs-btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #000; }

.zs-user-secondary { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; }
.zs-user-secondary a { color: var(--accent); }
.zs-user-secondary a:hover { color: var(--accent-soft); }

/* ════════════════════════════════
   PORTAL CONTENT GRID
════════════════════════════════ */

.zs-portal-grid {
  max-width: 1350px;
  margin: 25px auto 70px;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
}

/* ════════════════════════════════
   CARDS (shared)
════════════════════════════════ */

.zs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.zs-card:last-child { margin-bottom: 0; }

.zs-card-title {
  font-weight: 700; color: var(--accent); font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

/* ════════════════════════════════
   FORUM INDEX
════════════════════════════════ */

.zs-forum-grid {
  max-width: 1350px;
  margin: 30px auto 70px;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
}

.zs-category {
  margin-bottom: 24px;
}

.zs-category-title {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 0 0 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.zs-forum-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.zs-forum-row:hover { background: #171b23; border-color: #2a2f3e; }

.zs-forum-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 8px; background: var(--bg-elev);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.zs-forum-info { flex: 1; min-width: 0; }
.zs-forum-name { font-weight: 600; font-size: 14px; color: var(--text-main); }
.zs-forum-name a { color: var(--text-main); }
.zs-forum-name a:hover { color: var(--accent); }
.zs-forum-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.zs-forum-stats { text-align: right; flex-shrink: 0; }
.zs-forum-stats-num  { font-weight: 700; font-size: 14px; color: var(--text-main); }
.zs-forum-stats-label { font-size: 11px; color: var(--text-dim); }

.zs-forum-last { flex-shrink: 0; min-width: 160px; text-align: right; }
.zs-forum-last-title { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.zs-forum-last-meta  { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ════════════════════════════════
   THREAD LIST
════════════════════════════════ */

.zs-thread-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 18px; margin-bottom: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.zs-thread-row:hover { background: #171b23; border-color: #2a2f3e; }

.zs-thread-icon { font-size: 16px; flex-shrink: 0; color: var(--text-dim); }
.zs-thread-icon.new { color: var(--accent); }

.zs-thread-info { flex: 1; min-width: 0; }
.zs-thread-title { font-weight: 600; font-size: 13px; color: var(--text-main); }
.zs-thread-title a { color: var(--text-main); }
.zs-thread-title a:hover { color: var(--accent); }
.zs-thread-meta { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

.zs-thread-stats { text-align: right; flex-shrink: 0; }
.zs-thread-stats-num   { font-weight: 600; font-size: 13px; color: var(--text-main); }
.zs-thread-stats-label { font-size: 11px; color: var(--text-dim); }

/* ════════════════════════════════
   POSTS
════════════════════════════════ */

.zs-post {
  display: flex; gap: 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px; margin-bottom: 16px;
}

.zs-post-author {
  width: 150px; flex-shrink: 0; text-align: center;
}
.zs-post-author-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid var(--accent); margin: 0 auto 8px;
  background: var(--bg-elev); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 20px; color: #fff;
}
.zs-post-author-name  { font-weight: 700; font-size: 13px; color: var(--text-main); }
.zs-post-author-role  { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.zs-post-author-posts { font-size: 11px; color: var(--text-dim); margin-top: 6px; }

.zs-post-body { flex: 1; min-width: 0; }
.zs-post-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.zs-post-date { font-size: 11px; color: var(--text-dim); }
.zs-post-num  { font-size: 11px; color: var(--text-dim); }
.zs-post-content { font-size: 14px; color: var(--text-main); line-height: 1.7; }

/* ════════════════════════════════
   SIDEBAR WIDGETS
════════════════════════════════ */

.zs-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.zs-stat-row:last-child { border-bottom: none; }
.zs-stat-label { color: var(--text-muted); }
.zs-stat-value { font-weight: 600; color: var(--text-main); }
.zs-stat-value a { color: var(--accent); font-weight: 600; }

.zs-online-list { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.zs-online-list a { color: var(--accent); font-weight: 500; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */

.zs-footer {
  background: #0e1016;
  border-top: 1px solid var(--border-soft);
  padding: 28px 0;
  margin-top: 40px;
}

.zs-footer-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.zs-footer-links { display: flex; gap: 20px; }
.zs-footer-links a { color: var(--text-dim); }
.zs-footer-links a:hover { color: var(--accent); }
.zs-footer-copy { color: var(--text-dim); }

/* ════════════════════════════════
   SCROLLBAR
════════════════════════════════ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0f14; }
::-webkit-scrollbar-thumb { background: #1e222e; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =================================================
   ZSIGN — portal_extras.css
   Additional styles for portal-specific components.
   Add these rules to global.css or load separately.
================================================= */

/* Announcement rows */
.zs-announcement {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.zs-announcement:last-child { border-bottom: none; padding-bottom: 0; }

.zs-ann-avatar img,
.zs-ann-icon-default {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 8px; object-fit: cover;
}
.zs-ann-icon-default {
  background: var(--bg-elev);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.zs-announcement-body { flex: 1; min-width: 0; }

.zs-announcement-title {
  font-weight: 600; font-size: 14px;
}
.zs-announcement-title a { color: var(--text-main); }
.zs-announcement-title a:hover { color: var(--accent); }

.zs-announcement-meta {
  font-size: 11px; color: var(--text-dim); margin-top: 4px;
}
.zs-announcement-meta a { color: var(--text-muted); }
.zs-announcement-meta a:hover { color: var(--accent); }

.zs-send-link {
  font-size: 11px; color: var(--text-dim);
}
.zs-send-link:hover { color: var(--accent); }

/* Guest welcome */
.zs-guest-welcome { padding: 4px 0; }
.zs-guest-title { font-weight: 800; font-size: 16px; color: var(--accent); margin-bottom: 6px; }
.zs-guest-sub   { font-size: 12px; color: var(--text-muted); }

/* PM notification */
.zs-pm-notify {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
}
.zs-pm-link {
  color: #4499ff; font-weight: 600; font-size: 13px;
}
.zs-pm-link:hover { color: #fff; }

/* Online member bits */
.zs-online-member {
  display: inline-block;
  margin: 2px 6px 2px 0;
  font-size: 12px;
  font-weight: 500;
}

/* Thread new indicator */
.zs-thread-icon     { color: var(--text-dim); font-size: 10px; flex-shrink: 0; }
.zs-thread-icon.new { color: var(--accent); }

/* Text dim utility */
.zs-text-dim { color: var(--text-dim); }