/* ============================================
   Brand Colors & Variables
============================================ */
:root {
  --primary: #0072CF;       /* School blue */
  --primary-dark: #005699;
  --secondary: #66BC29;     /* School green */

  --bg: #f5f7fa;
  --text: #1f2933;
  --card-bg: #ffffff;
  --accent: #e5f1ff;

  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace,
          Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ============================================
   Base Styling
============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* Subtle scanline overlay */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 2px
  );
  opacity: 0.2;
  z-index: -1;
}

a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

/* Animated underline */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* ============================================
   Header
============================================ */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 64px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.site-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.header-actions {
  margin-left: auto;
}

/* Terminal theme toggle button */
.theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(102, 188, 41, 0.6);
}

/* ============================================
   Layout
============================================ */
main {
  max-width: 960px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

/* Glow on hover */
.card:hover {
  box-shadow: 0 0 18px rgba(0, 114, 207, 0.45);
  border-color: rgba(0, 114, 207, 0.6);
  transform: translateY(-2px);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-family: var(--mono);
}

.card h2::before {
  content: "> ";
  color: var(--secondary);
}

.badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: #ffffff;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.positions-list {
  list-style: none;
  padding-left: 0;
}

.positions-list li::before {
  content: "• ";
  color: var(--primary);
  font-weight: 700;
}

.highlight {
  background: var(--accent);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 0.9rem;
  border-radius: 0.35rem;
  margin-top: 0.75rem;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  padding: 1rem;
  color: #6b7280;
}

/* Layout changes for desktop */
@media (min-width: 800px) {
  main {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  }
}

/* ============================================
   Terminal Mode — Hacker Theme
============================================ */
body.terminal {
  background: #050608;
  color: #e6ffe6;
}

body.terminal::after {
  background: repeating-linear-gradient(
    rgba(102, 188, 41, 0.09) 0px,
    rgba(102, 188, 41, 0.09) 1px,
    transparent 2px
  );
  opacity: 0.22;
}

body.terminal header {
  background: radial-gradient(circle at top left, var(--secondary), #000);
  box-shadow: 0 0 24px rgba(102, 188, 41, 0.6);
}

body.terminal a {
  color: var(--secondary);
}

body.terminal a::after {
  background: var(--secondary);
}

body.terminal .card {
  background: #050608;
  border-color: rgba(102, 188, 41, 0.7);
  box-shadow: 0 0 18px rgba(102, 188, 41, 0.45);
}

body.terminal .card:hover {
  box-shadow: 0 0 26px rgba(102, 188, 41, 0.8);
}

body.terminal .card h2 {
  color: var(--secondary);
}

body.terminal .card h2::before {
  color: #66ff66;
}

body.terminal .highlight {
  background: #000;
  border-left-color: var(--secondary);
  font-family: var(--mono);
  box-shadow: inset 0 0 12px rgba(102, 188, 41, 0.4);
}

body.terminal .badge {
  background: #000;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  text-shadow: 0 0 6px rgba(102, 188, 41, 0.8);
}

body.terminal footer {
  color: #9ca3af;
}

body.terminal .theme-toggle {
  border-color: var(--secondary);
  box-shadow: 0 0 12px rgba(102, 188, 41, 0.6);
}
