/* ==========================================
   GenMedia - BMM601 Project
   Multimedia Systems Course - Spring 2026
   ========================================== */

/* Color palette */
:root {
  --primary:    #1E3A8A;    /* deep blue */
  --accent:     #F59E0B;    /* orange */
  --bg:         #F8F9FA;    /* light gray */
  --text:       #212529;    /* soft black */
  --text-light: #6B7280;    /* muted gray for secondary text */
  --border:     #E5E7EB;
  --white:      #FFFFFF;
}

/* ====== Basic reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ====== Layout ====== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== Header ====== */
.site-header {
  background-color: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* ====== Navigation ====== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

/* ====== Hero ====== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2849a8 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 25px;
  opacity: 0.95;
}

.hero .btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  margin: 5px;
  transition: transform 0.2s;
}

.hero .btn:hover {
  transform: translateY(-2px);
}

.hero .btn.secondary {
  background-color: transparent;
  border: 2px solid var(--white);
}

/* ====== Sections ====== */
section {
  padding: 50px 0;
}

.section-title {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 10px auto 0;
}

/* ====== Cards Grid ====== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 20px;
}

.card p {
  color: var(--text-light);
  font-size: 15px;
}

/* ====== AI Badge ====== */
.ai-badge {
  display: inline-block;
  background-color: #FEF3C7;
  color: #92400E;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

/* ====== Footer ====== */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 30px 0 20px;
  margin-top: 40px;
  text-align: center;
}

.site-footer p {
  margin-bottom: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 16px;
  }

  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav ul {
    gap: 15px;
    justify-content: center;
  }

  .section-title {
    font-size: 22px;
  }
}

/* ==========================================
   Day 2 additions — sub-page components
   ========================================== */

/* ====== Page hero (smaller variant for sub-pages) ====== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2849a8 100%);
  color: var(--white);
  padding: 45px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: 30px;
  margin-bottom: 8px;
  font-weight: 700;
}

.page-hero p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ====== Placeholder image (used until real WEBP/AVIF arrives) ====== */
.placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #E5E7EB;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-style: italic;
  border-radius: 6px;
}

/* ====== Image gallery (images.html) ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.gallery-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow 0.2s;
}

.gallery-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.gallery-item .caption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ====== Media block (audio-video.html) ====== */
.media-block {
  max-width: 720px;
  margin: 25px auto;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.media-block audio,
.media-block video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.media-caption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ====== Architecture comparison table (how-it-works.html) ====== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  background-color: var(--white);
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
}

.compare-table thead th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.compare-table tbody tr:nth-child(even) {
  background-color: var(--bg);
}

/* ====== Diagram placeholder (how-it-works.html) ====== */
.diagram-placeholder {
  width: 100%;
  min-height: 180px;
  background-color: #E5E7EB;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-style: italic;
  border-radius: 6px;
  margin: 15px 0;
}

/* ====== About page ====== */
.team-card {
  text-align: center;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

.supervisor-block {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 18px 22px;
  max-width: 600px;
  margin: 20px auto;
  text-align: left;
}

.supervisor-block h3 {
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 18px;
}

.supervisor-block p {
  color: var(--text-light);
  font-size: 14px;
}

.references {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.9;
}

.references li {
  margin-bottom: 6px;
}

.references a {
  color: var(--primary);
  text-decoration: none;
}

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

/* ====== Responsive additions for Day 2 components ====== */
@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 24px;
  }

  .page-hero p {
    font-size: 14px;
  }

  .compare-table {
    font-size: 13px;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px 10px;
  }
}
