/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cormorant Garamond', serif;
  color: rgba(255, 255, 255, 0.85);
  background: #0a1628;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; display: block; }

/* ===== CANVAS BACKGROUND ===== */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.vignette {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(5,10,25,0.7) 100%);
}

/* ===== TOP NAV ===== */
.top-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  min-width: 280px;
  max-width: 1400px;
  width: calc(100% - 40px);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 60px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}
.top-bar .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  transition: opacity 0.3s;
}
.top-bar .brand:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 6px 16px;
  border-radius: 30px;
  transition: all 0.3s;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
  opacity: 1;
}
.nav-links .admin-link {
  opacity: 0.35;
  font-size: 11px;
}
.nav-links .admin-link:hover {
  opacity: 0.7;
  background: none;
}

/* ===== MENU TOGGLE (hamburger) ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 30px;
  z-index: 110;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  line-height: 1;
  transition: all 0.3s;
}
.menu-toggle:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.8);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(5,10,25,0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}
.mobile-close:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mobile-menu-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.12em;
  padding: 12px 24px;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: rgba(255,255,255,0.95);
  background: none;
}

/* ===== MAIN CONTENT ===== */
.main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 40px 80px 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== PAGE HEADER (for hero--small pages) ===== */
.hero--small {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
  padding: 60px 20px 0;
}
.hero--small h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.1;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(200,180,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ===== SECTION HEADING ===== */
.section-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 28px;
  text-align: center;
  width: 100%;
}

/* ===== BANNER ===== */
.banner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  padding-top: 0;
}
.banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(180,160,240,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.banner-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: calc(100% - 80px);
  padding: 48px 32px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 40px;
}
.banner-icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: 0.4;
  animation: gentlePulse 3s ease-in-out infinite;
}
@keyframes gentlePulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}
.banner-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
  font-style: italic;
}
.banner-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,180,255,0.4);
  margin-bottom: 24px;
}
.banner-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.2;
}
.banner-decoration span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(200,180,255,0.4);
}
.banner-decoration .dot-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,180,255,0.3), transparent);
}

/* ===== MASONRY ===== */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1400px;
}
.masonry-item {
  break-inside: avoid;
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.masonry-item:hover {
  border-color: rgba(200,180,255,0.2);
  transform: translateY(-3px);
}
.masonry-img {
  width: 100%;
  min-height: 200px;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(255,255,255,0.02);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.masonry-item:hover .masonry-img {
  transform: scale(1.04);
}
.masonry-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(5,10,25,0.92) 0%, rgba(5,10,25,0.15) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.masonry-overlay h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255,255,255,0.9);
  margin: 0 0 3px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.masonry-overlay time {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200,180,255,0.5);
  margin-bottom: 4px;
}
.masonry-overlay span {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}
.masonry-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(40,30,60,0.4), rgba(20,15,30,0.4));
}
.masonry-placeholder span {
  font-size: 40px;
  color: rgba(200,180,255,0.12);
}

/* ===== MASONRY LOADER ===== */
.masonry-loader {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
  width: 100%;
}
.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(200,180,255,0.3);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(1); }
  40% { opacity: 0.8; transform: scale(1.3); }
}

/* ===== FLOATING TAG (footer) ===== */
.floating-tag {
  width: 100%;
  text-align: center;
  padding: 48px 20px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.15);
}

/* ===== MOMENT DETAIL PAGE (single column, matches template) ===== */
.moment-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.moment-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.moment-detail-header .back-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}

.moment-detail-header .back-link:hover {
  color: rgba(255,255,255,0.7);
  opacity: 1;
}

.moment-detail-image {
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.moment-detail-image .detail-image {
  width: 100%;
  height: auto;
  display: block;
}

.moment-detail-body {
  padding: 0;
}

.moment-detail-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

/* Meta info */
.moment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.moment-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(200,180,255,0.5);
}

.moment-meta-item a {
  color: rgba(200,180,255,0.6);
  transition: color 0.3s;
}

.moment-meta-item a:hover {
  color: rgba(200,180,255,0.9);
  opacity: 1;
}

/* Description */
.moment-description {
  max-width: 100%;
  margin-bottom: 28px;
}

.moment-description p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
}

/* Categories & Tags */
.moment-categories,
.moment-tags {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.moment-categories .label,
.moment-tags .label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.category-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(200,180,255,0.08);
  border: 1px solid rgba(200,180,255,0.12);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(200,180,255,0.7);
  transition: all 0.3s;
}

.category-tag:hover {
  background: rgba(200,180,255,0.15);
  border-color: rgba(200,180,255,0.25);
  color: rgba(200,180,255,0.9);
  opacity: 1;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
}

/* Navigation between moments */
.moment-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.moment-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
  max-width: 45%;
}

.moment-nav-link:hover {
  color: rgba(255,255,255,0.7);
  opacity: 1;
}

.moment-nav-link.next {
  text-align: right;
  margin-left: auto;
}

/* Responsive for moment detail */
@media (max-width: 768px) {
  .moment-detail-title {
    font-size: clamp(22px, 5vw, 32px);
  }
  .moment-description p {
    font-size: 16px;
    line-height: 1.7;
  }
  .moment-meta {
    gap: 10px;
  }
  .moment-meta-item {
    font-size: 11px;
  }
  .moment-nav {
    flex-direction: column;
    gap: 12px;
  }
  .moment-nav-link {
    max-width: 100%;
  }
  .moment-nav-link.next {
    text-align: left;
    margin-left: 0;
  }
}

/* ===== DETAIL PAGE (side-by-side) ===== */
.detail-back {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
}
.detail-back a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.detail-back a:hover { color: rgba(255,255,255,0.7); opacity: 1; }
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  width: 100%;
  align-items: start;
}
.detail-image-col { position: sticky; top: 100px; }
.detail-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: zoom-in;
  transition: border-color 0.3s;
}
.detail-image-wrapper:hover { border-color: rgba(200,180,255,0.2); }
.detail-image { width: 100%; height: auto; display: block; transition: transform 0.8s ease; }
.detail-image-wrapper:hover .detail-image { transform: scale(1.02); }
.detail-image-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
}
.detail-content-col { padding: 8px 0; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(200,180,255,0.5);
}
.detail-meta-item svg { opacity: 0.5; }
.detail-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}
.detail-description p {
  font-size: 18px;
  line-height: 1.8;
}

.detail-description {
  max-width: 100%;
}

/* ===== RESPONSIVE: Tablet & Mobile ===== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .main {
    padding: 110px 24px 60px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .detail-image-col {
    position: static;
  }
}

/* Small tablet / large phone (≤ 768px) */
@media (max-width: 768px) {
  .top-bar {
    top: 12px;
    padding: 8px 16px;
    min-width: unset;
    width: calc(100% - 24px);
    border-radius: 40px;
  }
  .top-bar .brand {
    font-size: 16px;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .main {
    padding: 90px 16px 50px;
  }
  .banner-inner {
    width: calc(100% - 0px);
    padding: 32px 20px;
    border-radius: 28px;
  }
  .banner-title {
    font-size: clamp(26px, 7vw, 40px);
  }
  .masonry {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
  .masonry-overlay {
    padding: 14px;
  }
  .masonry-overlay h3 {
    font-size: 15px;
  }
  .hero--small {
    padding: 40px 16px 0;
  }
  .detail-title {
    font-size: clamp(22px, 5vw, 32px);
  }
  .detail-description p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Phone (≤ 480px) */
@media (max-width: 480px) {
  .main {
    padding: 80px 12px 40px;
  }
  .top-bar {
    top: 8px;
    padding: 6px 12px;
    width: calc(100% - 16px);
    border-radius: 32px;
  }
  .top-bar .brand {
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  .masonry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .banner-inner {
    padding: 24px 16px;
    border-radius: 20px;
  }
  .banner-title {
    font-size: clamp(22px, 8vw, 30px);
  }
  .banner-sub {
    font-size: clamp(11px, 3vw, 14px);
  }
  .masonry-overlay h3 {
    font-size: 14px;
  }
  .masonry-overlay {
    padding: 12px;
  }
  .masonry-img {
    aspect-ratio: 4 / 3;
  }
  .floating-tag {
    padding: 32px 16px 0;
    font-size: 11px;
  }
  .section-heading {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .detail-back {
    flex-wrap: wrap;
    gap: 8px;
  }
  .detail-meta {
    gap: 10px;
  }
  .detail-meta-item {
    font-size: 11px;
  }
}

/* ===== MOBILE & TOUCH IMPROVEMENTS (ADDED) ===== */

/* gallery-hero & masonry controls for <= 768px */
@media (max-width: 768px) {
  .gallery-hero { padding: 60px 16px 0; text-align: center; }
  .gallery-title { font-size: clamp(24px, 6vw, 42px); }
  .gallery-subtitle { font-size: clamp(12px, 3vw, 16px); }

  .masonry-controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .filter-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; gap: 4px; padding-bottom: 4px; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; scroll-snap-align: start; padding: 8px 14px; font-size: 12px; min-height: 44px; }
  .view-toggle { display: none; } /* verberg op mobiel */
}

/* Touch verbeteringen */
.menu-toggle { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.masonry-item { cursor: pointer; -webkit-tap-highlight-color: rgba(200,180,255,0.15); }
.masonry-item:active { transform: scale(0.98); }

/* Mobile menu verbeteringen */
.mobile-menu { display: flex; transition: opacity 0.3s ease; opacity: 0; pointer-events: none; }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-links a { min-height: 52px; display: flex; align-items: center; justify-content: center; }

/* Extra voor <= 360px */
@media (max-width: 360px) {
  .masonry { grid-template-columns: 1fr; gap: 10px; }
  .top-bar { padding: 5px 10px; width: calc(100% - 12px); border-radius: 28px; }
  .top-bar .brand { font-size: 13px; }
  .banner-inner { padding: 20px 12px; }
  .masonry-overlay h3 { font-size: 13px; }
  .masonry-overlay { padding: 10px; }
}

