/* ============================================================
   26B CLASS HUB · SHARED THEME
   Discord-inspired palette + shared components used across
   index.html, resources.html, downloads.html
   ============================================================ */

:root {
  --dc-bg:        #1e1f22;
  --dc-bg2:       #2b2d31;
  --dc-bg3:       #313338;
  --dc-bg4:       #383a40;
  --dc-border:    #3f4147;
  --dc-blurple:   #5865f2;
  --dc-blurple-2: #4752c4;
  --dc-green:     #57f287;
  --dc-green-dk:  #248045;
  --dc-yellow:    #fee75c;
  --dc-red:       #ed4245;
  --dc-fuchsia:   #eb459e;
  --dc-orange:    #fcb045;
  --dc-white:     #f2f3f5;
  --dc-light:     #b5bac1;
  --dc-muted:     #80848e;
  --dc-current:   #f0b232;

  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow:    0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);

  --max-w:     1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
  background: var(--dc-bg);
  color: var(--dc-light);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--dc-blurple); text-decoration: none; transition: color 0.15s; }
a:hover { color: #7983f5; text-decoration: underline; }

/* ============================================================
   TOP NAV (shared across pages)
   ============================================================ */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(88, 101, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--dc-blurple-2);
}
.topnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.topnav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.topnav-brand:hover { text-decoration: none; }
.topnav-brand img { height: 40px; width: auto; }
.topnav-brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.topnav-brand-text .t1 {
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -0.3px;
}
.topnav-brand-text .t2 {
  color: rgba(255,255,255,0.7); font-size: 10px; letter-spacing: 1.5px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.topnav-links {
  display: flex; align-items: center; gap: 4px;
}
.topnav-link {
  color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.topnav-link:hover {
  background: rgba(255,255,255,0.15); color: #fff; text-decoration: none;
}
.topnav-link.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.topnav-link i { font-size: 16px; }

@media (max-width: 720px) {
  .topnav-brand-text .t2 { display: none; }
  .topnav-link { padding: 8px 10px; font-size: 13px; }
  .topnav-link span { display: none; }
  .topnav-link i { font-size: 18px; }
}

/* ============================================================
   PAGE HEADER (used on resources/downloads/etc)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--dc-bg2) 0%, var(--dc-bg) 100%);
  border-bottom: 1px solid var(--dc-border);
  padding: 60px 20px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(88,101,242,0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(252,176,69,0.08), transparent 50%);
  pointer-events: none;
}
.page-header-inner {
  position: relative; max-width: var(--max-w); margin: 0 auto;
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 11px;
  letter-spacing: 3px; color: var(--dc-muted);
  background: var(--dc-bg3); border: 1px solid var(--dc-border);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  text-transform: uppercase;
}
.page-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dc-green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }

.page-title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  color: var(--dc-white);
  letter-spacing: -1.5px;
  line-height: 1.05;
}
.page-title .accent { color: var(--dc-blurple); }
.page-subtitle {
  margin-top: 14px; font-size: clamp(15px, 2vw, 18px);
  color: var(--dc-light); max-width: 640px;
  margin-left: auto; margin-right: auto;
}

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px;
}

/* ============================================================
   SECTION
   ============================================================ */
.section { margin-bottom: 56px; }
.section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.section-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--dc-bg3);
  border: 1px solid var(--dc-border);
  border-radius: 12px;
  font-size: 22px;
}
.section-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800; color: var(--dc-white);
  letter-spacing: -0.5px;
}
.section-blurb {
  color: var(--dc-muted); font-size: 14px; margin-top: 2px;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--dc-bg2);
  border: 1px solid var(--dc-border);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--dc-blurple);
  background: var(--dc-bg3);
  text-decoration: none;
}
.card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(88, 101, 242, 0.15);
  color: var(--dc-blurple); font-size: 18px;
}
.card-icon.green  { background: rgba(87,242,135,0.12); color: var(--dc-green); }
.card-icon.yellow { background: rgba(254,231,92,0.12); color: var(--dc-yellow); }
.card-icon.orange { background: rgba(252,176,69,0.12); color: var(--dc-orange); }
.card-icon.red    { background: rgba(237,66,69,0.12);  color: var(--dc-red); }
.card-icon.fuchsia{ background: rgba(235,69,158,0.12); color: var(--dc-fuchsia); }

.card-tag {
  font-family: ui-monospace, monospace; font-size: 10px;
  color: var(--dc-muted); letter-spacing: 1px;
  background: var(--dc-bg); border: 1px solid var(--dc-border);
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
}
.card-title {
  font-size: 16px; font-weight: 700;
  color: var(--dc-white); letter-spacing: -0.3px;
}
.card-desc {
  font-size: 13px; color: var(--dc-light); line-height: 1.5;
  flex: 1;
}
.card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--dc-muted);
  margin-top: 4px;
}
.card-meta .arrow {
  margin-left: auto;
  font-size: 14px;
  transition: transform 0.15s;
}
.card:hover .card-meta .arrow { transform: translateX(3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dc-blurple);
  color: rgba(255,255,255,0.92);
  padding: 48px 24px 24px;
  margin-top: 60px;
  border-top: 1px solid var(--dc-blurple-2);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.footer * { box-sizing: border-box; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
  font-weight: 600;
  font-family: inherit;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
}
.footer .brand-name {
  display: block;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer .brand-tag {
  margin: 0 0 6px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  line-height: 1.55;
}
.footer .brand-meta {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 12.5px;
}
.footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color .15s;
}
.footer a:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
}
.footer-bottom .sep { color: rgba(255,255,255,0.5); margin: 0 10px; }
@media (max-width: 820px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media print { .footer { display: none; } }

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
