/* ARCHIEF.CSS
   Stijlen voor de kunstarchief-pagina met subtiel parallax-achtergrond
*/

/* Glass card for dark theme */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Fade-in animation for glass cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

/* --------------------------
   Fullscreen parallax achtergrond
--------------------------- */
body {
  position: relative;
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
  background-color: black; /* fallback */
  --scrollY: 0; /* CSS-variabele voor parallax */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../pictures/Achtergronden/fransBehang.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* achter content */
  filter: grayscale(30%) blur(3px) brightness(0.4);
  opacity: 0.9;
  transform: translateY(var(--scrollY));
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* --------------------------
   Kaarten (kunstwerken)
--------------------------- */
.archief-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  overflow: hidden;
  padding: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255,255,255,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.archief-card img {
  display: block;
  max-width: 100%;
  max-height: 550px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.25s ease;
  opacity: 1;
  border-radius: 0.5rem;
}

/* --------------------------
   Overlay (grote afbeelding)
--------------------------- */
#imageOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.3s ease;
}

#imageOverlay:not(.hidden) {
  display: flex;
}

#overlayImage {
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
  transition: transform 0.3s ease;
}

/* Fade effect overlay */
#imageOverlay {
  transition: opacity 0.3s ease;
}

/* --------------------------
   Overige stijlen
--------------------------- */
header h1 {
  color: #38bdf8;
}

header p {
  color: #cbd5e1;
}
