/* ═══════════════════════════════════════════════════════
   PROJECT-PAGE.CSS — EgoPoints-style Academic Project Pages
   ═══════════════════════════════════════════════════════ */

/* ─── Project Hero ─── */
.proj-hero {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.proj-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 60, 120, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.proj-hero__inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* Back link */
.proj-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.proj-hero__back:hover {
  color: var(--color-accent);
}

/* Title */
.proj-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* Subtitle / description */
.proj-hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Authors / collaborators */
.proj-hero__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 16px;
}

.proj-hero__author {
  font-size: 0.92rem;
  color: var(--color-text);
  font-weight: 500;
}

.proj-hero__author--collab {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Info row: duration, role, status */
.proj-hero__info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.proj-hero__info-item {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  position: relative;
}

.proj-hero__info-item:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -13px;
  color: var(--color-text-faint);
}

.proj-hero__info-item--status {
  color: var(--color-accent);
  font-weight: 600;
}

/* Tech tags */
.proj-hero__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* Action buttons */
.proj-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Project Content ─── */
.proj-content {
  padding: 60px 24px 80px;
}

.proj-content__inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Headings */
.proj-content__inner h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.proj-content__inner h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.proj-content__inner h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Body text */
.proj-content__inner p {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* Strong / emphasis */
.proj-content__inner strong {
  color: var(--color-text);
  font-weight: 600;
}

.proj-content__inner em {
  color: var(--color-text-muted);
}

/* Links */
.proj-content__inner a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.proj-content__inner a:hover {
  color: var(--color-link-hover);
}

/* Lists */
.proj-content__inner ul,
.proj-content__inner ol {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.proj-content__inner ul {
  list-style: disc;
}

.proj-content__inner ol {
  list-style: decimal;
}

.proj-content__inner li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* Code blocks */
.proj-content__inner pre {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.proj-content__inner code {
  background: var(--color-bg-card);
  color: var(--color-accent);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

.proj-content__inner pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: var(--color-text);
}

/* Tables */
.proj-content__inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.proj-content__inner thead {
  background: rgba(201, 168, 76, 0.08);
}

.proj-content__inner th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-accent);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proj-content__inner td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(99, 143, 217, 0.08);
  color: var(--color-text-muted);
}

.proj-content__inner tr:last-child td {
  border-bottom: none;
}

.proj-content__inner tbody tr:hover {
  background: rgba(201, 168, 76, 0.04);
}

/* Images */
.proj-content__inner img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

/* Figures */
.proj-content__inner figure {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
  background: var(--color-bg-card);
  margin: 1.5rem 0;
}

.proj-content__inner figure img {
  border: none;
  margin: 0;
  border-radius: 6px;
}

.proj-content__inner figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Blockquotes */
.proj-content__inner blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--color-bg-card);
  border-radius: 0 8px 8px 0;
}

.proj-content__inner blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* HR */
.proj-content__inner hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 2.5rem 0;
}

/* Image grids (for project pages with side-by-side images) */
.proj-content__inner .image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 1.5rem 0;
}

.proj-content__inner .image-item {
  text-align: center;
}

.proj-content__inner .image-item img {
  margin: 0 0 8px;
}

.proj-content__inner .image-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .proj-hero {
    padding: 110px 20px 40px;
  }

  .proj-hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .proj-hero__actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .proj-content {
    padding: 40px 20px 60px;
  }

  .proj-content__inner table {
    font-size: 0.8rem;
  }

  .proj-content__inner th,
  .proj-content__inner td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .proj-hero {
    padding: 100px 16px 32px;
  }

  .proj-hero__meta {
    flex-direction: column;
    gap: 4px;
  }

  .proj-hero__info {
    flex-direction: column;
    gap: 4px;
  }

  .proj-hero__info-item::after {
    display: none;
  }

  .proj-content {
    padding: 32px 16px 48px;
  }
}
