/* Gallery page — matches registration.blade.php visual language (reg-page-header, form-card).
   Requirements: photo/video gallery after each event; by year; browse & download (§11.1). */

.gallery-page .reg-page-header {
  background: linear-gradient(115deg, var(--napsa-blue) 0%, #1f2b5e 100%);
  padding: 100px 48px 60px;
  position: relative;
  overflow: hidden;
}
.gallery-page .reg-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='35' cy='35' r='3' fill='%23f9a61b' fill-opacity='0.07'/%3E%3C/svg%3E");
}
.gallery-page .reg-page-header-blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 166, 27, 0.14), transparent 70%);
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  pointer-events: none;
}
.gallery-page .reg-page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}
.gallery-page .reg-page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.gallery-page .reg-page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.gallery-page .reg-page-header .breadcrumb a:hover {
  color: white;
}
.gallery-page .reg-page-header .breadcrumb span {
  color: var(--napsa-yellow);
  font-weight: 700;
}
.gallery-page .reg-page-header .breadcrumb svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.35);
  fill: none;
  stroke-width: 2;
}
.gallery-page .reg-page-header h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.gallery-page .reg-page-header h1 span {
  color: white;
}
.gallery-page .reg-page-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

.gallery-page .reg-form-section {
  padding: 36px 48px 80px;
  background: var(--section-bg);
}
.gallery-page .reg-form-inner {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-page .form-card {
  background: white;
  border-radius: 28px;
  border: 1px solid #edf2f7;
  box-shadow: 0 8px 24px rgba(35, 45, 97, 0.06);
  overflow: hidden;
}
.gallery-page .form-card-header {
  padding: 28px 32px 0;
  border-bottom: 1px solid #f3f6fa;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.gallery-page .form-card-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--napsa-blue), var(--napsa-blue-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gallery-page .form-card-header-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--napsa-yellow);
  fill: none;
  stroke-width: 2;
}
.gallery-page .form-card-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--napsa-blue);
  margin-bottom: 2px;
}
.gallery-page .form-card-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Event year — filterable by year when multiple editions exist (§12.1). */
.gallery-page .gallery-year-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 32px 18px;
  border-bottom: 1px solid #f3f6fa;
}
.gallery-page .gallery-year-tab {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 100px;
  border: 1px solid #dde3ec;
  background: #fafbff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--napsa-blue);
  cursor: default;
}
.gallery-page .gallery-year-tab--active {
  background: var(--napsa-blue);
  color: white;
  border-color: var(--napsa-blue);
}
.gallery-page .gallery-year-tab:disabled {
  opacity: 1;
}

.gallery-page .gallery-spec-note {
  margin: 12px 32px 0;
  padding: 14px 16px 16px;
  border-left: 4px solid var(--napsa-yellow);
  background: rgba(249, 166, 27, 0.08);
  border-radius: 0 12px 12px 0;
  font-size: 13px;
  color: #2c3a5e;
  line-height: 1.55;
}
.gallery-page .gallery-spec-note strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--napsa-blue);
  margin-bottom: 6px;
}

.gallery-page .gallery-empty-body {
  padding: 32px;
}
.gallery-page .gallery-empty-lead {
  font-size: 15px;
  color: #2c3a5e;
  line-height: 1.65;
  margin: 0 0 8px;
  max-width: 52ch;
}
.gallery-page .gallery-empty-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.55;
}

.gallery-page .gallery-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 32px;
  list-style: none;
  padding: 0;
}
.gallery-page .gallery-placeholder-cell {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 2px dashed #dde3ec;
  background: #fafbff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.gallery-page .gallery-placeholder-cell svg {
  width: 36px;
  height: 36px;
  stroke: var(--napsa-blue);
  opacity: 0.2;
  fill: none;
  stroke-width: 1.5;
}

/* When media is provided (admin/CMS) — lazy-loaded images, descriptive alt (§13.1). */
.gallery-page .gallery-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 24px 32px 32px;
}
.gallery-page .gallery-media-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #edf2f7;
  background: #fafbff;
}
.gallery-page .gallery-media-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.gallery-page .gallery-media-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.gallery-page .gallery-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .gallery-page .reg-page-header {
    padding: 90px 20px 48px;
  }
  .gallery-page .reg-form-section {
    padding: 28px 20px 60px;
  }
  .gallery-page .gallery-year-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .gallery-page .gallery-spec-note {
    margin-left: 20px;
    margin-right: 20px;
  }
  .gallery-page .gallery-media-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
  .gallery-page .gallery-empty-body {
    padding: 20px;
  }
  .gallery-page .form-card-header {
    padding: 20px 20px 16px;
  }
  .gallery-page .gallery-placeholder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-page .gallery-placeholder-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .gallery-page .gallery-empty-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .gallery-page .gallery-empty-actions .btn-primary,
  .gallery-page .gallery-empty-actions .btn-ghost-dark {
    justify-content: center;
  }
}
