/* Portfolio Site - Creamsicle Theme */

:root {
  /* Creamsicle palette - WCAG AA compliant */
  --cream: #ffffff;
  --cream-dark: #fef8f0;
  --pink: #d1148a;          /* Dark pink for text - WCAG AA compliant (4.5:1) */
  --pink-light: #e91e8c;    /* Original pink for large text and accents */
  --pink-lighter: #ffe5f2;
  --orange: #c24000;        /* Dark orange for text - WCAG AA compliant (4.5:1) */
  --orange-light: #ff6635;  /* Original orange for non-text accents */
  --orange-lighter: #fff0e8;
  --yellow: #ffa500;
  --yellow-dark: #cc7700;
  --yellow-lighter: #fff4d9;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --border: #f0d4d4;
  --shadow: rgba(233, 30, 140, 0.1);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 240px;
  background: var(--cream-dark);
  border-right: 2px solid var(--border);
  padding: 40px 24px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--pink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: block;
  padding: 10px 16px;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
}

.sidebar-link:hover {
  background: var(--pink-lighter);
  color: var(--pink);
}

.sidebar-link.active {
  background: var(--pink);
  color: white;
}

.sidebar-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 16px;
  margin-top: 2px;
}

.sidebar-sublink {
  display: block;
  padding: 8px 16px;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-sublink:hover {
  background: var(--orange-lighter);
  color: var(--orange);
}

.sidebar-sublink.active {
  background: var(--orange-light);
  color: white;
}

/* Main Content Area */
.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 40px;
  max-width: 1400px;
}

/* Header Styles */
.page-header {
  margin-bottom: 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 600;
}

h1 {
  margin: 0 0 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--pink);
}

h2 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.01em;
  color: var(--text);
}

.intro {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.gallery-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  box-shadow: 0 4px 12px var(--shadow);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--pink-light);
}

.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: var(--cream-dark);
}

.gallery-card-body {
  padding: 20px;
}

.gallery-card-title {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.gallery-card-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.gallery-card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--pink);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.gallery-card-link:hover {
  color: var(--pink-light);
}

/* Detail Page */
.detail-container {
  max-width: 900px;
  margin: 0 auto;
}

.detail-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px var(--shadow);
}

.detail-caption {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.detail-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.detail-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--pink);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.detail-social-link:hover {
  background: var(--pink-light);
  transform: translateY(-2px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-soft);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-text {
  font-size: 18px;
  font-weight: 500;
}

/* Progress bar (for sections with counts) */
.progress-section {
  margin: 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--cream-dark);
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  border-radius: 6px;
  transition: width 0.6s ease;
}

.progress-label {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
}

.progress-label span {
  color: var(--pink);
  font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--pink);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 20px 16px;
  }

  .main-content {
    margin-left: 0;
    padding: 24px 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
