/* stylesheet for ITIS3135 — Brian Tramuel */

/* CSS Custom Properties */
:root {
  /* Brilliant Tortoise Color Palette */
  --bg: #1a3c1a;           /* Deep tortoise shell green */
  --bg-secondary: #295e06; /* Rich leaf green */
  --panel: #204b20;        /* Darker panel green */
  --panel-hover: #295e06;  /* Hover effect green */

  --text: #f8fafc;         /* Off-white for readability */
  --muted: #d1d5db;        /* Soft gray for muted text */

  --accent: #d4af37;       /* Gold highlight (brilliance) */
  --accent-2: #3b7a57;     /* Teal/sea-tortoise tone */
  --accent-glow: rgba(212, 175, 55, 0.2); /* Golden glow */

  --link: #facc15;         
  --link-visited: #eab308;
  
  --border: #334155;
  --border-light: #475569;

  --ok: #10b981;
  --warn: #f59e0b;
  --error: #ef4444;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 3rem;

  /* Font Sizes */
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;

  /* Line Heights */
  --line-height-tight: 1.3;
  --line-height-base: 1.6;
  --line-height-loose: 1.8;

    /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4), 0 10px 10px -5px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

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

body, header, nav, main, footer, div, p, h1, h2, h3, a, img,
ul, li, figure, figcaption, small, section {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #1a3c1a 0%, #295e06 50%, #3b7a57 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: var(--line-height-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* Utilities */
.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--muted);
  font-size: var(--font-size-sm);
}
.loading-indicator::before { content: "⚡"; }

.include-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  font-size: var(--font-size-sm);
}
.include-error summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* Header & Nav */
.site-header {
  background: linear-gradient(135deg, #1a3c1a 0%, #295e06 50%, #d4af37 100%);
  padding: var(--space-xl) 0;
  border-bottom: 2px solid var(--border-light);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
}

.site-title {
  margin: 0 0 var(--space-md) 0;
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}
.site-title .course-code { color: var(--accent); font-weight: 900; }
.site-title .student-name { color: var(--text); font-weight: 600; }
.site-title .brand { color: var(--link); font-weight: 700; }

.main-nav { margin-top: var(--space-lg); }

.nav-list {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  list-style: none;
}
.nav-list a {
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  font-weight: 500;
  font-size: var(--font-size-base);
}
.nav-list a:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
}
.nav-list a[aria-current="page"] {
  background: rgba(212,175,55,0.18);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Link groups */
.course-links { margin-top: var(--space-lg); }
.links-label {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.link-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.course-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--link);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
}
.course-link:hover { color: var(--accent); }
.link-icon { font-size: 1rem; }
.separator { color: rgba(255,255,255,0.3); }

/* Main */
main {
  padding: var(--space-2xl) 0;
  min-height: 60vh;
  margin-top: 0;
  text-align: center;
}
.page-title {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  margin-top: 0;
  margin-bottom: var(--space-xl);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl) var(--space-2xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
  color: var(--text);
  font-weight: 600;
}
.card:hover {
  background: var(--panel-hover);
  border-color: var(--border-light);
}
.lead {
  color: var(--muted);
  margin-top: var(--space-xs);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-loose);
}

/* Figures */
figure {
  margin: var(--space-xl) 0;
  padding: 0;
  text-align: center;
}
figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}
figcaption {
  font-style: italic;
  color: var(--muted);
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Info list */
.info-list { list-style: none; padding-left: 0; }
.info-list > li {
  margin: var(--space-md) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(212,175,55,0.12) 0%, transparent 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.info-list b { color: var(--accent); font-weight: 600; }
.info-list ul { margin-top: var(--space-sm); padding-left: var(--space-lg); }
.info-list ul li { margin: var(--space-sm) 0; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 2px solid var(--border);
  background: linear-gradient(135deg, #143014 0%, #1a3c1a 60%, #295e06 100%);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-2xl);
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 768px) {
  .footer-content { grid-template-columns: 2fr 1fr; }
}
.footer-section { margin-bottom: var(--space-lg); }
.footer-heading {
  margin: 0 0 var(--space-lg) 0;
  font-size: var(--font-size-xl);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}
.footer-links a {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--link);
  font-weight: 500;
}
.footer-links a:hover {
  background: var(--panel-hover);
  border-color: var(--border-light);
}
.footer-links a:visited { color: var(--link-visited); }

/* Validation badges */
.validation-description {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-base);
}
.validation-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.validation-link {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.validation-link img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Footer bottom */
.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  text-align: center;
}
.copyright, .year-copyright {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin: var(--space-sm) 0;
  line-height: var(--line-height-base);
}
.copyright a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.copyright a:hover { text-decoration: underline; }

   /* A11y & Media */
@media (max-width: 640px) {
  .nav-list { flex-direction: column; }
  .nav-list a { text-align: center; width: 100%; }
  .link-group { flex-direction: column; align-items: flex-start; }
  .separator { display: none; }
  .card { padding: var(--space-lg) var(--space-lg); }
}

a:focus, button:focus, [tabindex]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-contrast: high) {
  :root {
    --border: #64748b;
    --text: #ffffff;
    --bg: #000000;
    --panel: #1a1a1a;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}  /* <-- close it here */

/* Global link colors (gold by default → white on hover) */
a, a:visited {
  color: var(--accent);   /* gold */
  text-decoration: none;
}
a:hover, a:focus {
  color: #ffffff;         /* white on hover */
  text-decoration: underline;
}
a:active {
  color: var(--accent);   /* gold when active */
}

