/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #6d5dfc;
  --accent-hover: #5a4de6;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --border: #2a2a2a;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

[data-theme="light"] {
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text: #1c1917;
  --text-muted: #78716c;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --border: #e7e5e4;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--text); text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.site-logo .logo-img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.nav-links a {
  color: var(--text-muted);
  margin-left: 1.5rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.album-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.album-cover {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-elevated);
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.album-card:hover .album-cover img {
  transform: scale(1.03);
}

.album-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.album-cover-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.album-info {
  padding: 1rem 1.25rem 1.25rem;
}

.album-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.album-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.album-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.album-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

.album-page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.album-page-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.album-page-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.album-page-description {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 48rem;
  margin: 0.5rem auto 0;
}

.photo-gallery {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery-img {
  width: 100%;
  display: block;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-img {
  opacity: 0.9;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  padding: 0.75rem;
  transition: opacity 0.2s;
  z-index: 1001;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  opacity: 0.7;
}
.lightbox-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

[data-theme="light"] .lightbox {
  background: rgba(255, 255, 255, 0.97);
}
[data-theme="light"] .lightbox-close,
[data-theme="light"] .lightbox-prev,
[data-theme="light"] .lightbox-next {
  color: #1c1917;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text-muted); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

.not-found {
  text-align: center;
  padding: 4rem 0;
}
.not-found h1 { font-size: 5rem; font-weight: 700; color: var(--accent); }
.not-found p { color: var(--text-muted); margin: 1rem 0 2rem; }

@media (max-width: 900px) {
  .photo-gallery { columns: 2; }
  .albums-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

@media (max-width: 600px) {
  .photo-gallery { columns: 1; }
  .albums-grid { grid-template-columns: 1fr; }
  .album-page-title { font-size: 1.5rem; }
  .site-nav { padding: 1rem; }
  .container { padding: 1.5rem 1rem; }
}
