/* ══════════════════════════════════════════
   HuskerAI - Main Stylesheet
   Dark theme with scarlet accents
   ══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --scarlet: #D00000;
  --scarlet-dark: #a30000;
  --scarlet-light: #ff3333;
  --scarlet-glow: rgba(208, 0, 0, 0.3);
  --cream: #FAF8F0;
  --cream-dark: #F0EDE0;
  --white: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-darker: #111111;
  --bg-card: #242424;
  --bg-card-hover: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b6b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(208, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-scarlet: 0 4px 24px rgba(208,0,0,0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1100px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-dark);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--scarlet-light); transition: color var(--transition); }
a:hover { color: var(--scarlet); }

/* ══════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-h-letter {
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--scarlet);
  -webkit-text-stroke: 1.5px white;
  paint-order: stroke fill;
}

.site-name {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.header-discord {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: var(--transition);
}

.header-discord:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.2rem;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-discord {
  color: var(--scarlet-light) !important;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════════════
   HERO (Home page)
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero--compact {
  min-height: 85vh;
  padding: 5rem 2rem 3rem;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#node-canvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero__logo {
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo .logo-h-letter {
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  font-size: 8rem;
  line-height: 1;
  color: var(--scarlet);
  -webkit-text-stroke: 3px white;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 20px rgba(208, 0, 0, 0.4));
}

.hero__title {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.hero__title .accent {
  color: var(--scarlet);
}

.hero__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 0.8rem;
  letter-spacing: 0.02em;
}

.hero__tagline {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-primary);
  margin: 0;
  opacity: 0.9;
}


/* ══════════════════════════════════════════
   PAGE CONTENT
   ══════════════════════════════════════════ */
.page-content {
  padding: 7rem 0 4rem;
  min-height: 60vh;
}

.page-title {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 2rem;
  color: var(--white);
}

/* ══════════════════════════════════════════
   HOME ACTION CARDS
   ══════════════════════════════════════════ */
.home-actions {
  padding: 3rem 0 4rem;
  background: var(--bg-darker);
}

.home-actions__heading {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: 0.05em;
}

.home-actions__heading .arrow {
  display: inline-block;
  color: var(--scarlet);
  animation: bounceArrow 1.5s ease-in-out infinite;
}

.home-actions__heading .arrow--left {
  margin-right: 0.4em;
}

.home-actions__heading .arrow--right {
  margin-left: 0.4em;
  animation-delay: 0.2s;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.8rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
}

.action-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.action-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(208, 0, 0, 0.1);
  color: var(--scarlet-light);
  margin-bottom: 1.2rem;
}

.action-card h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.action-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.action-card__arrow {
  display: flex;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--scarlet-light);
  transition: transform var(--transition);
}

.action-card:hover .action-card__arrow {
  transform: translateX(4px);
}

.action-card--discord:hover {
  border-color: rgba(88, 101, 242, 0.4);
}

.action-card--discord .action-card__icon {
  background: rgba(88, 101, 242, 0.1);
  color: #7289da;
}

/* ══════════════════════════════════════════
   EVENTS
   ══════════════════════════════════════════ */
.events-section {
  padding: 2rem 0 4rem;
}

.events-section h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 1.5rem;
  color: var(--white);
}

.events-section h2 .count {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* Upcoming events - large & prominent */
.event-list--upcoming .event-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  margin-bottom: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.event-list--upcoming .event-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.event-list--upcoming .event-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 80px;
}

.event-list--upcoming .event-date__month {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--scarlet-light);
}

.event-list--upcoming .event-date__day {
  display: block;
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
}

.event-list--upcoming .event-date__year {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.event-list--upcoming .event-info h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
}

.event-list--upcoming .event-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.event-meta-line {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Past events - compact & subdued */
.event-list--past .event-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  opacity: 0.7;
  transition: var(--transition);
}

.event-list--past .event-item:hover {
  opacity: 1;
  border-color: var(--border-accent);
}

.event-list--past .event-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 90px;
}

.event-list--past .event-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.event-list--past .event-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.events-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ══════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════ */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.about-card h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--scarlet-light);
  margin: 0 0 0.8rem;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.about-links {
  margin-top: 2.5rem;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.about-link--stacked {
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
}

.about-link:hover {
  border-color: var(--scarlet);
  color: var(--scarlet-light);
  background: rgba(208, 0, 0, 0.05);
}

/* ══════════════════════════════════════════
   OFFICERS PAGE
   ══════════════════════════════════════════ */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.officer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

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

.officer-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(208, 0, 0, 0.1);
  border: 2px solid var(--border-subtle);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--scarlet-light);
}

.officer-card h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
}

.officer-card .officer-role {
  font-size: 0.85rem;
  color: var(--scarlet-light);
  font-weight: 500;
  margin: 0;
}

/* ══════════════════════════════════════════
   POST CONTENT
   ══════════════════════════════════════════ */
.post-content {
  padding: 7rem 0 4rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-title {
  font-family: 'Roboto Slab', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-meta time { color: var(--text-secondary); }
.post-meta .post-location { color: var(--scarlet-light); }

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-body h2, .post-body h3 {
  font-family: 'Roboto Slab', serif;
  color: var(--text-primary);
  margin-top: 2rem;
}

.post-body p { margin: 0 0 1.2rem; }

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1.2rem;
}

.post-body code {
  background: rgba(208, 0, 0, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--scarlet-light); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease-out both;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .action-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .hero {
    min-height: auto;
    padding: 8rem 1.5rem 4rem;
  }

  .hero--compact {
    padding: 6rem 1.5rem 3rem;
  }

  .hero__tagline { font-size: 1.2rem; }

  .event-list--upcoming .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero__title { font-size: 2.8rem; }
  .hero__logo .logo-h-letter { font-size: 5rem; }
  .page-title { font-size: 2rem; }
}
