/* ── AI Product Photography Portfolio ── */
:root {
  --bg: #141210;
  --bg-card: #1c1a18;
  --bg-hover: #242220;
  --accent: #d97333;
  --accent-dim: #b85a22;
  --text: #f5f0e8;
  --text-dim: #a09888;
  --text-bright: #ffffff;
  --border: #2a2824;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text-bright); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
header p {
  color: var(--text-dim);
  margin-top: 6px;
  font-size: 1rem;
}
header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
header .back-link:hover { color: var(--accent); }

/* ── Gig Cards (Landing Page) ── */
.gig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.gig-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.gig-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(217,115,51,0.12);
}

.gig-card .preview {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  display: flex;
}
.gig-card .preview img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}
.gig-card .preview img.before { filter: grayscale(0.8) contrast(0.7); }
.gig-card .preview img.after { filter: none; }

.gig-card .info {
  padding: 16px 18px;
}
.gig-card .info h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 4px;
  line-height: 1.3;
}
.gig-card .info .meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  gap: 16px;
}
.gig-card .info .meta .gig-badge {
  background: var(--accent);
  color: var(--text-bright);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Gig Detail Page ── */
.gig-header {
  margin-bottom: 32px;
}
.gig-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}
.gig-header .gig-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.gig-header .gig-id {
  background: var(--accent);
  color: var(--text-bright);
  padding: 1px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
}
.gig-header .gig-description {
  margin-top: 10px;
  color: var(--text-dim);
  max-width: 700px;
}

/* ── Image Pairs ── */
.image-pair {
  margin-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.image-pair .pair-number {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pair-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.pair-display .before-wrapper,
.pair-display .after-wrapper {
  position: relative;
}

.pair-display img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
}

.pair-display .label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0,0,0,0.6);
  color: var(--text);
}

.pair-display .label.before {
  background: rgba(217,115,51,0.8);
  color: var(--text-bright);
}

.pair-display .label.after {
  background: rgba(39,174,96,0.8);
  color: var(--text-bright);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.15s;
}

.pagination a:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-bright);
  font-weight: 600;
}

.pagination .gap { border: none; background: none; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 30px 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}
.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .gig-grid { grid-template-columns: 1fr; }
  .pair-display { grid-template-columns: 1fr; }
  .gig-card .preview { aspect-ratio: 16/10; }
  header h1 { font-size: 1.4rem; }
  .gig-header h1 { font-size: 1.2rem; }
  .container { padding: 0 14px; }
}
