/* ============================================
   Pedagogical Tools — Faculty Page Stylesheet
   ============================================ */

:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-hover: #243044;
  --border: #2d3a4f;
  --text: #e8eef7;
  --text-muted: #9aa8bc;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(920px, 92vw);
  margin-inline: auto;
}

/* ----- Header ----- */
.site-header {
  background: linear-gradient(180deg, #152032 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.75rem;
  margin-bottom: 2.5rem;
}

.header-content {
  text-align: center;
}

.site-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.site-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.site-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

/* ----- About ----- */
.about-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.about-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.about-section p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-links {
  font-size: 0.95rem !important;
  color: var(--text) !important;
}

.about-links a {
  font-weight: 500;
}

/* ----- Tool sections ----- */
.tool-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 60%);
}

.tool-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.tool-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.tool-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tool-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.tool-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

/* ----- Resources ----- */
.resources h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.resources h3:first-child {
  margin-top: 0;
}

.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.resource-link:hover {
  background: rgba(59, 130, 246, 0.25);
  text-decoration: none;
  color: var(--text);
}

.resource-icon {
  font-size: 1.1rem;
}

/* ----- Video list ----- */
.video-list {
  list-style: none;
  counter-reset: none;
  display: grid;
  gap: 0.35rem;
}

.video-list li a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--mono);
  background: transparent;
  transition: background 0.15s ease;
}

.video-list li a:hover {
  background: var(--surface-hover);
  text-decoration: none;
  color: var(--accent);
}

/* ----- Buttons ----- */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #2c3b52;
  color: var(--text);
}

.note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ----- Screenshots ----- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.screenshot-grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0e14;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-grid figure:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ----- Footer ----- */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

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

/* ----- Responsive ----- */
@media (max-width: 600px) {
  .tool-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .tool-body {
    padding: 1.25rem;
  }

  .download-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .screenshot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}
