/* ==========================================================
   Wildfire Visualization Platform — Master Thesis Website
   Author: Rigoto, 2025
   ========================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #0d1117 0%, #111827 50%, #1a2332 100%);
  background-attachment: fixed;
  color: #e6edf3;
  line-height: 1.7;
  min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2, h3, h4, nav, .site-footer {
  font-family: Arial, Helvetica, sans-serif;
}

h1 { font-size: 1.8rem; line-height: 1.25; }
h2 { font-size: 1.4rem; margin-bottom: 0.6rem; color: #2dd4bf; border-bottom: 2px solid rgba(45, 212, 191, 0.3); padding-bottom: 0.3rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: #2dd4bf; }
p  { margin-bottom: 0.9rem; }

a      { color: #2dd4bf; text-decoration: underline; }
a:hover { color: #5eead4; }

/* ---- Layout ---- */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ---- Site Header ---- */
.site-header {
  background-color: #0d1117;
  color: #e6edf3;
  padding: 1.2rem 0;
  border-bottom: 1px solid #30363d;
}

.site-header .wrapper {
  display: table;
  width: 100%;
}

.header-text {
  display: table-cell;
  vertical-align: middle;
}

.site-header h1 {
  color: #e6edf3;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.header-meta {
  font-size: 0.85rem;
  color: #8b949e;
}

.header-badge {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
  padding-left: 1rem;
  white-space: nowrap;
}

.badge-label {
  background-color: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
}

/* ---- Navigation ---- */
.site-nav {
  background-color: #0d1117;
  border-bottom: 2px solid #2dd4bf;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.site-nav ul {
  list-style: none;
  display: table;
  width: 100%;
}

.site-nav ul li {
  display: table-cell;
}

.site-nav ul li a {
  display: block;
  text-align: center;
  padding: 0.7rem 0.5rem;
  color: #e2e2e2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
  background-color: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
}

.site-nav ul li.back-link a {
  color: #8b949e;
  font-size: 0.82rem;
}

.site-nav ul li.back-link a:hover {
  color: #2dd4bf;
  background-color: transparent;
}

/* ---- Hero / Intro Banner ---- */
.hero {
  background-color: #111827;
  color: #e6edf3;
  padding: 2.5rem 0;
  text-align: center;
  border-bottom: 1px solid #30363d;
}

.hero h2 {
  color: #2dd4bf;
  border-bottom: none;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: #8b949e;
  max-width: 700px;
  margin: 0 auto 0;
  font-size: 0.95rem;
}

.hero-tags {
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background-color: rgba(45, 212, 191, 0.1);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  margin: 0.15rem;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 4px;
}

/* ---- Main Content ---- */
.main-content {
  padding: 2rem 0;
}

.section {
  background-color: #161b22;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #2dd4bf;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 0 6px 6px 0;
}

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

/* ---- Study Area Grid ---- */
.area-grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.area-grid th {
  background-color: #2dd4bf;
  color: #0d1117;
  padding: 0.5rem 0.8rem;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
}

.area-grid td {
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid #30363d;
  vertical-align: top;
  color: #e0e0e0;
}

.area-grid tr:nth-child(even) td {
  background-color: #1a2332;
}

/* ---- Feature List ---- */
.feature-list {
  list-style: none;
  margin-top: 0.6rem;
}

.feature-list li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-bottom: 1px dotted #30363d;
  position: relative;
  color: #e0e0e0;
}

.feature-list li::before {
  content: "\25BA";
  color: #2dd4bf;
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-size: 0.7rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* ---- Pipeline Steps ---- */
.pipeline-steps {
  counter-reset: step-counter;
  list-style: none;
  margin-top: 0.6rem;
}

.pipeline-steps li {
  counter-increment: step-counter;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
  border-bottom: 1px solid #30363d;
  color: #e0e0e0;
}

.pipeline-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.45rem;
  background-color: #2dd4bf;
  color: #0d1117;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 0.8rem;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  line-height: 1.5rem;
  border-radius: 50%;
}

.pipeline-steps li:last-child {
  border-bottom: none;
}

/* ---- Screenshot Placeholder ---- */
.gallery {
  display: table;
  width: 100%;
  border-spacing: 0.8rem;
  margin-top: 0.8rem;
}

.gallery-row {
  display: table-row;
}

.gallery-cell {
  display: table-cell;
  width: 50%;
  vertical-align: top;
}

.screenshot-placeholder {
  background-color: #1a2332;
  border: 2px dashed #30363d;
  text-align: center;
  padding: 3.5rem 1rem;
  color: #8b949e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
}

.screenshot-placeholder strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #e0e0e0;
}

/* ---- Download Cards ---- */
.download-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.8rem;
  margin-top: 0.8rem;
}

.download-grid td {
  background-color: #161b22;
  border: 1px solid #30363d;
  padding: 1rem 1.2rem;
  vertical-align: top;
  width: 50%;
  border-radius: 6px;
}

.download-grid .dl-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-style: normal;
}

.download-grid .dl-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
  color: #2dd4bf;
  margin-bottom: 0.3rem;
}

.download-grid .dl-desc {
  font-size: 0.85rem;
  color: #8b949e;
  margin-bottom: 0.6rem;
}

.btn-download {
  display: inline-block;
  background-color: #2dd4bf;
  color: #0d1117;
  padding: 0.4rem 1rem;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #5eead4;
  color: #0d1117;
}

/* ---- Info Box ---- */
.info-box {
  background-color: rgba(45, 212, 191, 0.06);
  border-left: 4px solid #2dd4bf;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
  font-size: 0.9rem;
  color: #8b949e;
}

/* ---- Two-Column ---- */
.two-col {
  display: table;
  width: 100%;
}

.two-col .col {
  display: table-cell;
  vertical-align: top;
  width: 50%;
  padding-right: 1.2rem;
}

.two-col .col:last-child {
  padding-right: 0;
  padding-left: 0.6rem;
}

/* ---- Definition List ---- */
dl.meta {
  font-size: 0.9rem;
}

dl.meta dt {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #2dd4bf;
  margin-top: 0.5rem;
}

dl.meta dd {
  margin-left: 0;
  color: #8b949e;
}

/* ---- Site Footer ---- */
.site-footer {
  background-color: #0d1117;
  color: #8b949e;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.82rem;
  margin-top: 2rem;
  border-top: 1px solid #30363d;
}

.site-footer a {
  color: #2dd4bf;
}

.site-footer p {
  margin: 0.2rem 0;
}

/* ---- Fade-in on scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
  }

  .site-nav ul li {
    display: block;
    flex: 1 1 auto;
  }

  .two-col .col {
    display: block;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 1rem;
  }

  .gallery-cell {
    display: block;
    width: 100%;
    margin-bottom: 0.8rem;
  }

  .download-grid td {
    display: block;
    width: 100%;
  }

  .header-badge {
    display: none;
  }
}
