/* terminal.css */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --fg: #d6d6d6;
  --muted: #a8a8a8;
  --green: #52ff7a;
  --cyan: #44c5ff;
  --line: rgba(82, 255, 122, 0.22);
}

body {
  font-family: "Hack", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

.wrap {
  max-width: 860px;
  margin: 28px auto 80px;
  padding: 32px 40px 60px;
  position: relative;
}

/* ICON BAR */
.icon-row {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 360px;
  justify-content: flex-end;
}

.icon-row a {
  color: var(--cyan);
}

.icon {
  width: 22.5px;
  height: 22.5px;
  stroke: var(--cyan);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.9;
}

.icon-row a:hover .icon {
  stroke: var(--green);
  opacity: 1;
}

/* HEADERS */
header {
  margin-bottom: 20px;
}

h1 {
  font-size: 24px;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.5px;
}

.cursor {
  margin-left: 4px;
  color: var(--green);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.project a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(68, 197, 255, 0.3);
}

.project a:hover {
  border-bottom-color: rgba(82, 255, 122, 0.6);
}

.site-header {
  margin-top: 20px;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
}

.site-subtitle,
.site-description {
  color: var(--muted);
  font-size: 13px;
}

.site-description {
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.2em;
}

/* SECTION HEADINGS */
section {
  margin-top: 26px;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
}

h2::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px dashed var(--line);
}

h2 a {
  color: var(--green);
}

/* ECC links */
.ecc-links p {
  margin: 6px 0;
  font-size: 1.1em;
  color: var(--muted);
  line-height: 1.3;
}

.ecc-links a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(68, 197, 255, 0.25);
}

.ecc-links a:hover {
  border-bottom-color: rgba(82, 255, 122, 0.6);
}

/* CLASS LISTS */
.class-list {
  list-style: none;
}

.class-list li {
  position: relative;
  padding-left: 16px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 1.1em;
  line-height: 1.3;
}

.class-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 9px;
  color: var(--green);
}

.class-list a {
  color: #ffffff;
  font-size: 1.1em;
}

.current-term .class-list {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

/* DETAILS: past terms */
.term-group {
  margin-top: 18px;
}

.term-group summary {
  cursor: pointer;
  user-select: none;
  color: var(--green);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  width: fit-content;
}

/* LINK GROUP SECTIONS */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  line-height: 0.5;
}

.links a {
  padding: 4px 2px;
}

/* AI PILLS */
.pill-container {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(68, 197, 255, 0.4);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.2px;
}

.pill:hover {
  border-color: rgba(82, 255, 122, 0.6);
  color: var(--green);
}

/* FOOTER */
footer {
  margin-top: 30px;
  color: rgba(214, 214, 214, 0.5);
  font-size: 12px;
}

/* MOBILE */
@media (max-width: 800px) {
  .wrap {
    margin: 16px 12px 60px;
    padding: 24px 16px 40px;
  }

  .icon-row {
    position: static;
    justify-content: flex-start;
    margin-bottom: 16px;
  }

  h1 {
    font-size: 34px;
  }
}
