/* ═══════════════════════════════════════════
   PROJECTS ARCHIVE — projects.css
   Drake Hendrickson Portfolio
   ═══════════════════════════════════════════ */

:root {
  --pj-bg: #1f2026;
  --pj-surface: #2a2b34;
  --pj-surface-hover: #323340;
  --pj-surface-card: #252630;
  --pj-accent: #cfcdf8;
  --pj-purp: #6B52FF;
  --pj-purp-glow: rgba(107, 82, 255, 0.25);
  --pj-text: #ffffff;
  --pj-text-body: #eaeaf0;
  --pj-text-dim: rgba(234, 234, 240, 0.65);
  --pj-border: rgba(207, 205, 248, 0.12);
  --pj-border-hover: rgba(107, 82, 255, 0.5);
  --pj-radius: 16px;
  --pj-radius-sm: 10px;
}

/* ── HERO ── */
.projects-hero {
  position: relative;
  width: 100%;
  padding: 8vh 6vw 5vh;
  text-align: center;
  background: var(--pj-bg);
}

.projects-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.projects-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pj-accent);
}

.projects-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  letter-spacing: 0.06em;
  color: var(--pj-text);
  line-height: 1;
  margin: 0;
}

.projects-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: var(--pj-text-dim);
  max-width: 650px;
  line-height: 1.6;
}

/* ── MAIN CONTAINER ── */
.projects-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2vh 6vw 10vh;
  display: flex;
  flex-direction: column;
  gap: 8vh;
}

/* ── SECTION STYLES ── */
.projects-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid rgba(207, 205, 248, 0.15);
  padding-bottom: 14px;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-title-group h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

.section-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pj-accent);
  background: rgba(207, 205, 248, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(207, 205, 248, 0.2);
}

.section-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--pj-text-dim);
  display: none;
}

@media (min-width: 768px) {
  .section-desc {
    display: block;
  }
}

/* ── 4-COLUMN PROJECT GRID ── */
.projects-grid-4 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  width: 100%;
}

@media (min-width: 640px) {
  .projects-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── PROJECT SLOT CARD ── */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--pj-surface);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--pj-text-body);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  position: relative;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--pj-border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px var(--pj-purp-glow);
}

/* Thumbnail / Slot Preview Box */
.card-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--pj-surface-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card image if loaded */
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-thumbnail img {
  transform: scale(1.06);
}

/* Empty Slot Placeholder Pattern & Elements */
.slot-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at center, rgba(107, 82, 255, 0.12) 0%, rgba(37, 38, 48, 0.8) 75%);
  border: 1px dashed rgba(207, 205, 248, 0.25);
  border-radius: 12px;
  margin: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  transition: all 0.35s ease;
}

.project-card:hover .slot-placeholder {
  border-color: var(--pj-purp);
  background: radial-gradient(circle at center, rgba(107, 82, 255, 0.22) 0%, rgba(37, 38, 48, 0.9) 75%);
}

.slot-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(207, 205, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pj-accent);
  transition: all 0.35s ease;
}

.slot-icon-box svg {
  width: 22px;
  height: 22px;
  transition: transform 0.35s ease;
}

.project-card:hover .slot-icon-box {
  background: var(--pj-purp);
  color: #ffffff;
  transform: scale(1.1);
}

.project-card:hover .slot-icon-box svg {
  transform: rotate(90deg);
}

.slot-number-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(234, 234, 240, 0.4);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.slot-status-pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pj-accent);
  background: rgba(207, 205, 248, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Card Body */
.card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
  transition: color 0.3s ease;
}

.project-card:hover .card-title {
  color: var(--pj-accent);
}

.card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--pj-text-dim);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.card-action {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(207, 205, 248, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pj-accent);
  transition: all 0.3s ease;
}

.card-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project-card:hover .card-action {
  color: #ffffff;
}

.project-card:hover .card-action svg {
  transform: translateX(4px);
}
