/* === Hans Galerie - Warm/Ambachtelijk Design === */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --cream: #F5F0E8;
  --warm-white: #FDFBF7;
  --sand: #E8DFD0;
  --brown-light: #C4A882;
  --brown: #8B7355;
  --brown-dark: #5C4A32;
  --accent: #B8860B;
  --accent-hover: #9A7209;
  --text: #3C3022;
  --text-light: #6B5D4F;
  --text-muted: #9A8B7A;
  --border: #D4C9B8;
  --shadow: rgba(92, 74, 50, 0.08);
  --shadow-hover: rgba(92, 74, 50, 0.15);
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* === HEADER === */
header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 0.02em;
}

.site-title span {
  font-weight: 400;
  font-style: italic;
  color: var(--brown);
}

nav {
  display: flex;
  gap: 0.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 0.95rem;
  transition: all var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--brown-dark);
  background: var(--sand);
}

/* === HERO / BIO SECTION === */
.hero {
  background: var(--warm-white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-photo {
  width: 200px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow-hover);
  cursor: pointer;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.hero-photo:hover {
  transform: scale(1.03);
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: var(--brown-dark);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  max-width: 600px;
}

.bio-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.bio-extra.bio-open {
  max-height: 2000px;
}

.bio-toggle {
  background: transparent;
  border: none;
  padding: 0.2rem 0;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: color var(--transition);
  display: inline-block;
  margin-top: 0.3rem;
}

.bio-toggle:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === FILTERS === */
.filters-section {
  background: var(--warm-white);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 66px;
  z-index: 90;
}

.filters-inner {
  max-width: 100%;
  padding: 0 2rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.4rem 1.2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.filter-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.filter-buttons {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--brown-light);
  color: var(--brown-dark);
  background: var(--sand);
}

.filter-btn.active {
  background: var(--brown-dark);
  color: var(--warm-white);
  border-color: var(--brown-dark);
}

.filter-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.filter-btn-special {
  border-style: dashed;
  font-style: italic;
}

/* === GALLERY GRID === */
.gallery-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

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

.gallery-item {
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: var(--sand);
}

.gallery-item-info {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
}

.gallery-item-id {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 0.3rem;
  cursor: pointer;
  transition: color 0.2s;
}

.gallery-item-id:hover {
  color: var(--accent);
}

.gallery-item-id.copied {
  color: var(--accent);
}

.gallery-item-id.copied::after {
  content: ' \2713 gekopieerd';
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
}

.gallery-item-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  background: var(--sand);
  color: var(--text-light);
  text-transform: capitalize;
}

.tag.tag-year {
  background: var(--brown-dark);
  color: var(--warm-white);
}

.tag.tag-artist {
  background: var(--accent);
  color: white;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 24, 16, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-info {
  text-align: center;
  margin-top: 1rem;
  color: var(--sand);
  font-size: 0.9rem;
}

.lightbox-info .tag {
  margin: 0 0.2rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--sand);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  color: white;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* === NO RESULTS === */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* === FOOTER === */
footer {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3rem;
}

/* === PAGE: BIO === */
.bio-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.bio-page h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.bio-page p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    flex-direction: row;
    justify-content: center;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .filter-count {
    margin-left: 0;
  }

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

  .gallery-item img {
    height: 200px;
  }

  .filters-section {
    position: relative;
    top: 0;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .gallery-item img {
    height: 160px;
  }

  .gallery-item-info {
    padding: 0.5rem 0.6rem;
  }

  .site-title {
    font-size: 1.4rem;
  }
}

/* === ANIMATIONS === */
.gallery-item {
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for grid items */
.gallery-item:nth-child(1) { animation-delay: 0.02s; }
.gallery-item:nth-child(2) { animation-delay: 0.04s; }
.gallery-item:nth-child(3) { animation-delay: 0.06s; }
.gallery-item:nth-child(4) { animation-delay: 0.08s; }
.gallery-item:nth-child(5) { animation-delay: 0.10s; }
.gallery-item:nth-child(6) { animation-delay: 0.12s; }
.gallery-item:nth-child(7) { animation-delay: 0.14s; }
.gallery-item:nth-child(8) { animation-delay: 0.16s; }

/* Hide items that don't match filter */
.gallery-item.hidden {
  display: none;
}
