/* Fun With Robots — Site Styles */
:root {
  --bg-0: #13171F;
  --bg-1: #181C25;
  --text-0: #e6e8ee;
  --text-1: #cbd5e1;
  --primary: #9B2318;
  --accent-blue: #4A7BD1;
  --link: #ff7f73;
  --muted: #93a4b8;
  --border: #273043;
  --card-bg: #1d222c;
  --shadow: 0 12px 32px rgba(3, 7, 18, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(8px); z-index: 50; }
.site-header { background: var(--bg-1); border-bottom: 1px solid var(--border); }
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-1);
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-0);
  transition: color 0.2s ease;
}
.brand .logo-img { width: 36px; height: 36px; display: block; transition: transform 0.2s ease; }
.brand .title { font-weight: 700; letter-spacing: 0.2px; }
.brand:hover, .brand:focus-visible { color: var(--link); }
.brand:hover .logo-img, .brand:focus-visible .logo-img { transform: scale(1.05) rotate(-2deg); }
.brand:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 10px; }

.nav-links { display: flex; gap: 14px; align-items: center; justify-content: center; }
.nav-links a {
  text-decoration: none; color: var(--link); padding: 8px 12px; border-radius: 8px; transition: background 0.2s ease, color 0.2s ease, text-decoration-color 0.2s ease;
}
.nav-links a:hover {
  background: color-mix(in oklab, var(--bg-1) 80%, transparent);
  color: #ff9a8a;
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.nav-icons { display: flex; gap: 12px; align-items: center; }
.mobile-icons { display: none; }
.icon-link { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in oklab, var(--bg-1) 85%, transparent); border: 1px solid var(--border); color: var(--link); transition: background 0.2s ease, border-color 0.2s ease; }
.icon-link:hover { background: color-mix(in oklab, var(--bg-1) 70%, transparent); border-color: color-mix(in oklab, var(--border) 60%, var(--link)); }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero */
.hero {
  padding: 56px 0 24px; text-align: center;
}
.semester-tag { display: inline-block; padding: 6px 14px; background: var(--primary); color: #ffffff; border: 1px solid var(--primary); border-radius: 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; margin-top: 12px; margin-bottom: 24px !important; text-transform: uppercase; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; }
.hero p { margin: 0 auto; max-width: 800px; color: var(--text-1); }

@media (min-width: 721px) {
  .nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-icons { margin-left: auto; }
}

/* Showcase */
.showcase { margin: 32px 0; text-align: center; }
.showcase-img { width: 100%; max-width: 1000px; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }

@media (max-width: 600px) {
  .showcase-img { border-radius: 10px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 28px 0; align-items: stretch; grid-auto-rows: 1fr; }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; height: 100%;
}
.card h3 { margin: 6px 0 10px; }
.card p { margin: 0 0 12px; color: var(--text-1); }
.card a.button {
  display: inline-block; text-decoration: none; background: var(--accent-blue); color: #fff; padding: 8px 12px; border-radius: 10px; transition: transform 0.1s ease, box-shadow 0.2s ease;
  margin-top: auto;
  align-self: flex-start;
}
.card a.button:hover { box-shadow: 0 0 16px rgba(74, 123, 209, 0.5); }
.card a.button.secondary { background: var(--primary); }
.card a.button.secondary:hover { box-shadow: 0 0 16px rgba(155, 35, 24, 0.5); }

/* Sections */
.section { margin: 28px 0; }
.section h2 { margin: 0 0 8px; }
.section .muted { color: var(--muted); }

/* Table (Schedule) */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  padding: 6px;
  box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.table th { color: var(--muted); font-weight: 600; }
.table a { color: var(--link); text-decoration: none; }
.table a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .table { min-width: 620px; font-size: 14px; }
  .table th, .table td { padding: 8px 10px; white-space: nowrap; }
}

/* Collapsible sections */
.collapsible-section { margin: 28px 0; }
.section-title { cursor: pointer; margin: 0 0 8px; font-weight: 700; color: var(--text-0); user-select: none; }
.section-title:hover { color: var(--link); }
.collapsible-section[open] .section-title { margin-bottom: 12px; }
.section-content ul { margin: 0; }
.section-content li { margin: 0 0 8px; }
.section-content strong { color: var(--accent-blue); font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 22px 0; margin-top: 36px; color: var(--muted); background: var(--bg-1); }

/* Global links */
a { color: var(--link); }

/* Responsive nav */
.menu-button { display: none; }
@media (max-width: 720px) {
  .menu-button { display: inline-flex; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-1); color: var(--text-0); cursor: pointer; }
  .nav-links { display: none; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; padding: 10px 20px; background: var(--bg-1); border-bottom: 1px solid var(--border); }
  .nav-links .mobile-icons { display: flex; gap: 12px; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--border); }
  .mobile-icons .icon-link { width: 42px; height: 42px; }
  .mobile-icons .icon-link svg { width: 22px; height: 22px; }
  .nav-icons { display: none; }
}
