/* Art Page - Minimalistische Stijl met Hero Afbeelding en Uniforme Grid */
/* HERO SECTION - Image loaded from Strapi */
.art-hero {
  background-color: var(--deep-black, #0a0a0a);
  background-image: linear-gradient(rgba(10,10,10,0.4),rgba(10,10,10,0.4)), url('../assets/spherebox-art-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-image 0.3s ease;
}

.art-hero .hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  z-index: 2;
}

.art-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 300;
  color: var(--ivory-white);
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
  letter-spacing: -2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.art-subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: rgba(249, 247, 243, 0.9);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* MINIMALISTISCHE INTRO SECTION */
.art-intro {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--ivory-white);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-text {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.7;
  color: var(--deep-black);
  font-weight: 300;
  margin: 0;
}

/* ART CATEGORY SECTIONS - MINIMALE PADDING */
.art-category-section {
  padding: 0 0 clamp(4rem, 6vw, 5rem) 0;
  /* HELEMAAL GEEN PADDING BOVENAAN */
  background: var(--ivory-white);
  position: relative;
  overflow: hidden;
}

.art-category-section.category-alt {
  background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
}

.art-category-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%,
      rgba(201, 166, 107, 0.02) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 20%,
      rgba(184, 167, 140, 0.02) 0%,
      transparent 50%);
  pointer-events: none;
}

/* SPECIALE REGEL VOOR DE EERSTE SECTIE (Brons) - HELEMAAL GEEN SPACING */
.art-category-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  /* Extra zekerheid */
}

/* CATEGORY HEADER - MINIMALE SPACING */
.category-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  /* VERMINDERD van 3rem naar 2rem */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(1rem,
      2vw,
      1.5rem);
  /* KLEINE PADDING ALLEEN VOOR EERSTE SECTIE */
}

/* SPECIALE REGEL: EERSTE SECTIE NOG MINDER PADDING */
.art-category-section:first-of-type .category-header {
  padding-top: clamp(0.5rem, 1vw, 1rem);
  /* MINIMALE PADDING VOOR BRONS */
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  /* NOG MINDER MARGIN */
}

.category-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(0.5rem,
      1vw,
      0.8rem);
  /* VERMINDERD van 0.8rem naar 0.5rem */
  color: var(--deep-black);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.category-description {
  max-width: 700px;
  margin: 0 auto;
}

.category-description h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--antique-gold);
  margin-bottom: clamp(0.5rem,
      1vw,
      0.8rem);
  /* VERMINDERD van 0.8rem naar 0.5rem */
  font-weight: 300;
  letter-spacing: -0.01em;
}

.category-description p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--warm-taupe);
  font-family: var(--font-secondary);
  margin-bottom: 0;
  font-weight: 300;
}

/* VERWIJDER DE KUNSTENAARS OPSOMMING STYLING */
.artist-names {
  display: none !important;
  /* VERBERG DE KUNSTENAARSOPSOMMING VOLLEDIG */
}

/* VERWIJDER STRONG STYLING DIE NIET MEER NODIG IS */
.artist-names strong {
  display: none !important;
}

/* UNIFORME GRID - ALLE ITEMS ZELFDE GROOTTE */
.art-gallery.uniform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

/* ART ITEMS - UNIFORME STYLING MET ALTIJD ZICHTBARE NAAM */
.uniform-grid .art-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  /* Vierkant voor uniforme grid */
  background: var(--ivory-white);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(199, 200, 202, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uniform-grid .art-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--silver-mist);
}

.uniform-grid .art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.uniform-grid .art-item:hover img {
  transform: scale(1.05);
}

/* ALTIJD ZICHTBARE KUNSTENAARSNAAM OVERLAY */
.uniform-grid .art-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 0%,
      transparent 60%,
      rgba(10, 10, 10, 0.4) 80%,
      rgba(10, 10, 10, 0.7) 100%);
  color: var(--ivory-white);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  opacity: 1;
  /* ALTIJD ZICHTBAAR */
  pointer-events: none;
  /* Voorkomt dat overlay click events blokkeert */
}

.uniform-grid .art-item:hover .art-overlay {
  background: linear-gradient(transparent 0%,
      transparent 50%,
      rgba(10, 10, 10, 0.5) 70%,
      rgba(10, 10, 10, 0.8) 100%);
}

.uniform-grid .art-overlay .artist-name {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--ivory-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  width: 100%;
}

/* LOADING STATES - MINIMALISTISCHE STYLING */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 6vw, 4rem) 2rem;
  color: var(--warm-taupe);
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.no-artists,
.artists-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 6vw, 4rem) 2rem;
  color: var(--deep-black);
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.artists-error {
  color: #d32f2f;
}

/* CTA SECTION - MINIMALISTISCHE STIJL */
.cta-section {
  padding: clamp(5rem, 8vw, 7rem) 0;
  background: var(--deep-black);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ivory-white);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--silver-mist);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  line-height: 1.6;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  padding: clamp(1rem, 2vw, 1.2rem) clamp(2rem, 4vw, 3rem);
  background: var(--ivory-white);
  color: var(--deep-black);
  font-family: var(--font-secondary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--ivory-white);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--deep-black);
  color: var(--ivory-white);
  border-color: var(--ivory-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE DESIGN - UNIFORME GRID */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .art-gallery.uniform-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  .category-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: clamp(0.5rem, 1vw, 1rem);
  }

  .art-category-section:first-of-type .category-header {
    padding-top: clamp(0.3rem, 0.5vw, 0.8rem);
    /* NOG MINDER OP TABLET */
    margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
  }

  .category-title {
    margin-bottom: clamp(0.4rem, 0.8vw, 0.6rem);
  }

  .category-description h3 {
    margin-bottom: clamp(0.4rem, 0.8vw, 0.6rem);
  }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
  .art-hero {
    height: 60vh;
    min-height: 400px;
  }

  .art-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .art-intro {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem) 0;
    /* VERDER VERMINDERD */
  }

  .art-category-section {
    padding: 0 0 clamp(3rem, 6vw, 4rem) 0;
  }

  .category-header {
    margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
    padding-top: clamp(0.3rem, 0.5vw, 0.8rem);
  }

  .art-category-section:first-of-type .category-header {
    padding-top: clamp(0.2rem, 0.3vw, 0.5rem);
    /* MINIMAAL OP MOBIEL */
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
  }

  .category-title {
    margin-bottom: clamp(0.3rem, 0.6vw, 0.5rem);
  }

  .category-description h3 {
    margin-bottom: clamp(0.3rem, 0.6vw, 0.5rem);
  }
}

/* EXTRA REGEL VOOR DIRECTE AANSLUITING OP HERO */
.art-hero+.art-intro+.art-category-section:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.art-hero+.art-intro+.art-category-section:first-of-type .category-header {
  padding-top: clamp(0.2rem, 0.4vw, 0.6rem) !important;
  /* ABSOLUTE MINIMUM */
}

/* ENTRANCE ANIMATIONS - SUBTIEL EN MINIMALISTISCHE */
.uniform-grid .art-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.uniform-grid .art-item:nth-child(1) {
  animation-delay: 0.1s;
}

.uniform-grid .art-item:nth-child(2) {
  animation-delay: 0.2s;
}

.uniform-grid .art-item:nth-child(3) {
  animation-delay: 0.3s;
}

.uniform-grid .art-item:nth-child(4) {
  animation-delay: 0.4s;
}

.uniform-grid .art-item:nth-child(5) {
  animation-delay: 0.5s;
}

.uniform-grid .art-item:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ACCESSIBILITY - FOCUS STATES */
.uniform-grid .art-item:focus {
  outline: 2px solid var(--antique-gold);
  outline-offset: 2px;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {

  .uniform-grid .art-item,
  .uniform-grid .art-item img,
  .uniform-grid .art-overlay,
  .cta-button {
    transition: none !important;
    animation: none !important;
  }

  .uniform-grid .art-item:hover {
    transform: none !important;
  }

  .uniform-grid .art-item:hover img {
    transform: none !important;
  }

  .uniform-grid .art-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
  .uniform-grid .art-item {
    border: 2px solid var(--deep-black);
  }

  .uniform-grid .art-overlay {
    background: linear-gradient(transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.8) 70%,
        rgba(0, 0, 0, 0.95) 100%) !important;
  }

  .uniform-grid .art-overlay .artist-name {
    font-weight: 300 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
  }
}

/* PRINT STYLES */
@media print {
  .uniform-grid .art-overlay {
    display: none !important;
  }

  .uniform-grid .art-item {
    box-shadow: none !important;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .art-gallery.uniform-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .cta-section {
    display: none !important;
  }
}

/* HOVER DEVICE SPECIFIC */
@media (hover: hover) {
  .uniform-grid .art-overlay {
    opacity: 0;
  }

  .uniform-grid .art-item:hover .art-overlay {
    opacity: 1;
  }
}

/* NO HOVER DEVICES (TOUCH) */
@media (hover: none) {
  .uniform-grid .art-overlay {
    opacity: 1;
    background: rgba(10, 10, 10, 0.4);
  }
}