/* =============================================
   PROJECTS.CSS — Projects page styles
   ============================================= */

@import url('variables.css');
@import url('base.css');

/* ── Page header ─────────────────────────── */
.page-header {
  padding: 10rem 4rem 5rem;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  animation: fadeUp 0.7s ease both;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--secondary);
}

.page-header h1 em {
  font-style: italic;
  color: var(--hint);
}

.page-header-sub {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.5);
  max-width: 520px;
}

/* ── Filter bar ──────────────────────────── */
.filter-bar {
  padding: 2rem 4rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
  animation: fadeUp 0.6s 0.1s ease both;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(200, 169, 110, 0.2);
  color: rgba(245, 240, 232, 0.5);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(200, 169, 110, 0.1);
  border-color: var(--hint);
  color: var(--hint);
}

/* ── Projects grid ───────────────────────── */
/*
  HOW TO ADD MORE PROJECTS:
  Simply add another <article class="project-card"> block
  inside <div class="projects-grid"> in projects.html.
  The grid handles layout automatically — no CSS changes needed.
*/

.projects-section {
  padding: 4rem 4rem 6rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5px;                /* hair-thin gap creates a gallery feel */
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid rgba(200, 169, 110, 0.08);
}

/* ── Individual project card ─────────────── */
.project-card {
  background: var(--primary);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: default;
  transition: background 0.25s;
  animation: fadeUp 0.6s ease both;
  position: relative;
  overflow: hidden;
}

/* Stagger animation for each card */
.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.12s; }
.project-card:nth-child(3) { animation-delay: 0.19s; }
.project-card:nth-child(4) { animation-delay: 0.26s; }
.project-card:nth-child(5) { animation-delay: 0.33s; }
.project-card:nth-child(6) { animation-delay: 0.40s; }
/* Pattern continues automatically for more cards */

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--hint);
  transition: height 0.35s ease;
}

.project-card:hover {
  background: rgba(245, 240, 232, 0.025);
}

.project-card:hover::before {
  height: 100%;
}

/* ── Card internals ──────────────────────── */
.project-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: rgba(200, 169, 110, 0.35);
  letter-spacing: 0.1em;
}

.project-tag-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-tag {
  padding: 0.25rem 0.7rem;
  background: rgba(200, 169, 110, 0.08);
  color: rgba(200, 169, 110, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.2;
}

.project-description {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.8;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.project-link {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hint);
  text-decoration: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-link:hover {
  opacity: 0.7;
}

.project-link svg {
  width: 12px;
  height: 12px;
}

/* ── Status badge ────────────────────────── */
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.4);
  flex-shrink: 0;
}

.status-dot.active {
  background: #6dbb8a;
  box-shadow: 0 0 6px rgba(109, 187, 138, 0.5);
}

.status-dot.wip {
  background: var(--hint);
  box-shadow: 0 0 6px rgba(200, 169, 110, 0.5);
}

/* ── "More coming" card ──────────────────── */
.project-card.placeholder {
  border: 1px dashed rgba(200, 169, 110, 0.12);
  background: transparent;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  cursor: default;
}

.project-card.placeholder::before { display: none; }

.placeholder-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(200, 169, 110, 0.25);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .page-header { padding: 8rem 1.5rem 3rem; }
  .filter-bar { padding: 1.5rem 1.5rem; }
  .projects-section { padding: 2.5rem 1.5rem 4rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
