/* ============================================================
   Research page stylesheet
   ============================================================ */

/* ---- Page hero ---- */
.res-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.res-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/research_landscape.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.75;
}

.res-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,12,24,0.25) 0%,
    rgba(8,12,24,0.15) 40%,
    rgba(8,12,24,0.88) 100%
  );
}

.res-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
}

.res-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.4rem 0 0.5rem;
}

.res-hero-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0;
  line-height: 1.65;
}

/* ---- Main content ---- */
.res-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ---- Project section ---- */
.res-project {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.res-project:last-child { border-bottom: none; }

/* Status + tags row */
.res-project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.res-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25em 0.8em;
  border-radius: 100px;
  border: 1px solid;
}

.res-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.res-status--active {
  color: var(--green);
  border-color: rgba(62,207,142,0.35);
  background: rgba(62,207,142,0.08);
}
.res-status--active .res-status-dot {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-green 2s ease-in-out infinite;
}

.res-status--draft {
  color: var(--amber);
  border-color: rgba(232,184,75,0.35);
  background: var(--amber-glow);
}
.res-status--draft .res-status-dot {
  background: var(--amber);
}

.res-status--published {
  color: var(--accent);
  border-color: rgba(79,142,247,0.35);
  background: rgba(79,142,247,0.08);
}
.res-status--published .res-status-dot {
  background: var(--accent);
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Title & subtitle */
.res-project-title {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #e8edf8;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.res-project-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* Two-column layout */
.res-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .res-two-col {
    grid-template-columns: 1fr;
  }
}

/* Body text */
.res-body h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 1.6rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.res-body h3:first-child { margin-top: 0; }

.res-body p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Step list */
.res-steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.8rem 0;
}

.res-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.res-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.res-step--done .res-step-num {
  background: rgba(62,207,142,0.15);
  border: 1.5px solid rgba(62,207,142,0.5);
  color: var(--green);
}

.res-step--planned .res-step-num {
  background: rgba(79,142,247,0.1);
  border: 1.5px solid var(--border-light);
  color: var(--text-dim);
}

.res-step-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 0.2rem;
}
.res-step-body strong { color: var(--text); }
.res-step-body em { color: var(--green); font-style: normal; }

/* ---- Sidebar ---- */
.res-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 80px;
}

/* Info card */
.res-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.res-info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.res-info-row:last-child { border-bottom: none; }

.res-info-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.1em;
}

.res-done-badge {
  color: var(--green);
  font-weight: 600;
  font-size: 0.82rem;
}

.res-draft-badge {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.82rem;
}

/* Highlight box */
.res-highlight-box {
  background: rgba(79,142,247,0.06);
  border: 1px solid rgba(79,142,247,0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.res-highlight-box--amber {
  background: var(--amber-glow);
  border-color: rgba(232,184,75,0.2);
  border-left-color: var(--amber);
}

.res-highlight-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.res-highlight-box--amber .res-highlight-label { color: var(--amber); }

.res-highlight-box p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
