/* ============================================================
   WhiSki Trip 2026 — Alpine Frost Luxury
   ============================================================ */

:root {
  /* Palette — twilight frost */
  --midnight:       #141e30;
  --deep-navy:      #1b2a45;
  --slate:          #243352;
  --frost:          #e8eef6;
  --ice:            #c5d5ea;
  --powder:         #94b8d9;
  --cyan-glow:      #5cc8e4;
  --aurora:         #38e8c6;
  --warm-gold:      #e8c876;
  --blush:          #e87882;
  --white:          #f8fafd;

  /* Semantic */
  --bg:             var(--midnight);
  --bg-card:        rgba(26, 39, 68, 0.65);
  --bg-card-hover:  rgba(26, 39, 68, 0.85);
  --text-primary:   var(--frost);
  --text-secondary: var(--ice);
  --text-muted:     var(--powder);
  --accent:         var(--cyan-glow);
  --accent-warm:    var(--warm-gold);
  --border:         rgba(197, 213, 234, 0.1);
  --border-hover:   rgba(92, 200, 228, 0.3);

  /* Mountains */
  --mountain-far:   rgba(27, 42, 69, 0.5);
  --mountain-near:  rgba(20, 30, 48, 0.7);

  /* Typography */
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Outfit', system-ui, sans-serif;

  /* Spacing */
  --gap:            16px;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;

  /* Transitions */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:       0.35s;
}

/* ── Reset ─────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ── Noise Overlay ─────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Snowfall Canvas ───────────────────────────── */

#snowfall {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ── Mountain Background ───────────────────────── */

.mountain-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  height: 40vh;
}
.mountain-bg svg {
  width: 100%;
  height: 100%;
}

/* ── Header ────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 10;
  padding: 48px 24px 24px;
  text-align: center;
}

.header-inner {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeSlideIn 0.8s var(--ease-out) both;
}

.logo-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.logo-icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 0 20px rgba(92, 200, 228, 0.3));
  animation: gentleFloat 4s ease-in-out infinite;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, var(--frost) 0%, var(--cyan-glow) 50%, var(--aurora) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-year {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-align: left;
  margin-top: 2px;
}

.site-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  animation: fadeSlideIn 0.8s var(--ease-out) 0.15s both;
}

.btn-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, rgba(92, 200, 228, 0.15), rgba(56, 232, 198, 0.1));
  border: 1px solid rgba(92, 200, 228, 0.25);
  border-radius: 50px;
  color: var(--cyan-glow);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: all var(--duration) var(--ease-out);
  backdrop-filter: blur(12px);
  animation: fadeSlideIn 0.8s var(--ease-out) 0.3s both;
}
.btn-upload-trigger:hover {
  background: linear-gradient(135deg, rgba(92, 200, 228, 0.25), rgba(56, 232, 198, 0.18));
  border-color: var(--cyan-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(92, 200, 228, 0.2);
}

/* ── Stats Bar ─────────────────────────────────── */

.stats-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 20px 24px;
  animation: fadeSlideIn 0.8s var(--ease-out) 0.2s both;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--frost);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ── Filter Bar ────────────────────────────────── */

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 30, 48, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  animation: fadeSlideIn 0.6s var(--ease-out) 0.35s both;
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  background: rgba(197, 213, 234, 0.06);
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease-out);
}
.filter-chip:hover {
  color: var(--frost);
  background: rgba(197, 213, 234, 0.1);
}
.filter-chip.active {
  color: var(--accent);
  background: rgba(92, 200, 228, 0.1);
  border-color: rgba(92, 200, 228, 0.3);
}
.filter-chip svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.filter-chip.active svg {
  opacity: 1;
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.filter-select {
  padding: 7px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(197, 213, 234, 0.06);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.filter-select:hover, .filter-select:focus {
  background: rgba(197, 213, 234, 0.1);
  border-color: var(--border-hover);
}

.search-wrap {
  position: relative;
  flex-shrink: 0;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-wrap input {
  width: 180px;
  padding: 8px 12px 8px 36px;
  border-radius: 50px;
  font-size: 0.8rem;
  background: rgba(197, 213, 234, 0.06);
  border: 1px solid transparent;
  color: var(--text-primary);
  transition: all var(--duration) var(--ease-out);
}
.search-wrap input::placeholder {
  color: var(--text-muted);
}
.search-wrap input:focus {
  width: 240px;
  background: rgba(197, 213, 234, 0.1);
  border-color: var(--border-hover);
}

/* ── Gallery Grid ──────────────────────────────── */

.gallery {
  position: relative;
  z-index: 10;
  padding: 24px;
  min-height: 60vh;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Gallery Item ──────────────────────────────── */

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  animation: itemReveal 0.6s var(--ease-out) both;
}
.gallery-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(92, 200, 228, 0.1),
    0 0 60px -20px rgba(92, 200, 228, 0.15);
}

.gallery-item .thumb-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--deep-navy);
}

.gallery-item .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover .thumb-wrap img {
  transform: scale(1.05);
}

/* Frost overlay on hover */
.gallery-item .thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.7) 0%, transparent 50%);
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease-out);
}
.gallery-item:hover .thumb-wrap::after {
  opacity: 0.3;
}

/* Video play badge */
.gallery-item .video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(11, 17, 32, 0.6);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--duration) var(--ease-spring);
}
.gallery-item:hover .video-badge {
  transform: translate(-50%, -50%) scale(1);
  background: rgba(92, 200, 228, 0.25);
  border-color: rgba(92, 200, 228, 0.5);
}
.video-badge svg {
  margin-left: 3px;
}

/* Item info */
.gallery-item .item-info {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-caption {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.item-day {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(92, 200, 228, 0.1);
  padding: 3px 8px;
  border-radius: 50px;
}

.item-fav {
  color: var(--blush);
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--duration) var(--ease-spring);
}
.gallery-item:hover .item-fav,
.item-fav.is-fav {
  opacity: 1;
  transform: scale(1);
}
.item-fav.is-fav svg {
  fill: var(--blush);
}

.item-comments {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.item-comments svg {
  opacity: 0.6;
}

.item-uploader {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Gallery States ────────────────────────────── */

.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.loader {
  margin-bottom: 16px;
}

.loader-flake {
  font-size: 2rem;
  animation: spin 3s linear infinite;
  display: inline-block;
}

.gallery-empty {
  text-align: center;
  padding: 80px 24px;
}
.gallery-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.gallery-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--frost);
  margin-bottom: 8px;
}
.gallery-empty p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Lightbox ──────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.92);
  backdrop-filter: blur(24px);
  animation: fadeIn 0.3s var(--ease-out);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxIn 0.4s var(--ease-out);
}

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 75vh;
}

.lightbox-media img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-media video {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  margin-top: 16px;
  text-align: center;
  max-width: 600px;
}

.lightbox-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--frost);
  margin-bottom: 4px;
}

.lightbox-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--frost);
  transition: all var(--duration) var(--ease-out);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  color: var(--frost);
  transition: all var(--duration) var(--ease-out);
}
.lightbox-nav:hover {
  background: rgba(92, 200, 228, 0.15);
  color: var(--cyan-glow);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-actions {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 12px;
}

.lightbox-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--frost);
  transition: all var(--duration) var(--ease-out);
}
.lightbox-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}
.lightbox-action-btn.is-fav {
  color: var(--blush);
}
.lightbox-action-btn.is-fav svg {
  fill: var(--blush);
}

.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 50px;
}

/* ── Comments Panel ─────────────────────────────── */

.comments-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 340px;
  max-width: 90vw;
  z-index: 3;
  background: rgba(27, 42, 69, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  animation: commentSlideIn 0.3s var(--ease-out);
}
.comments-panel[hidden] { display: none; }

@keyframes commentSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.comments-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--frost);
}
.comments-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.comments-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease-out);
}
.comments-close:hover {
  color: var(--frost);
  background: rgba(255, 255, 255, 0.08);
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(197,213,234,0.15) transparent;
}

.comments-empty,
.comments-loading {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 32px 0;
  font-style: italic;
  font-family: var(--font-display);
}

.comment {
  padding: 10px 12px;
  background: rgba(197, 213, 234, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 213, 234, 0.06);
  animation: fadeSlideIn 0.25s var(--ease-out) both;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan-glow);
}

.comment-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

/* Comment form */
.comment-form {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-form-row {
  display: flex;
  gap: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="password"] {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  background: rgba(197, 213, 234, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-primary);
  transition: border-color var(--duration) var(--ease-out);
}
.comment-form input::placeholder {
  color: var(--text-muted);
}
.comment-form input:focus {
  border-color: var(--border-hover);
}

.comment-send {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-glow), var(--aurora));
  color: var(--midnight);
  transition: all var(--duration) var(--ease-out);
}
.comment-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(92, 200, 228, 0.3);
}

.comment-error {
  font-size: 0.72rem;
  color: var(--blush);
  margin: 0;
}
.comment-error[hidden] { display: none; }

/* Mobile comments */
@media (max-width: 768px) {
  .comments-panel {
    width: 100%;
    max-width: 100%;
    top: auto;
    bottom: 0;
    height: 55vh;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  @keyframes commentSlideIn {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}

/* ── Upload Modal ──────────────────────────────── */

.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.upload-modal[hidden] { display: none; }

.upload-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.8);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s var(--ease-out);
}

.upload-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--deep-navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 24px 32px;
  animation: slideUp 0.4s var(--ease-out);
}

.upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.upload-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.upload-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease-out);
}
.upload-close:hover {
  color: var(--frost);
  background: rgba(255, 255, 255, 0.08);
}

/* Dropzone */
.upload-dropzone {
  position: relative;
  border: 2px dashed rgba(92, 200, 228, 0.2);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
  margin-bottom: 16px;
}
.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--cyan-glow);
  background: rgba(92, 200, 228, 0.04);
}
.upload-dropzone.drag-over {
  transform: scale(1.02);
}

.dropzone-content { pointer-events: none; }
.dropzone-icon {
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.6;
}
.dropzone-text {
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.dropzone-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Upload preview */
.upload-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(197, 213, 234, 0.04);
  border-radius: var(--radius-sm);
}
.upload-preview[hidden] { display: none; }

.preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.preview-file {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(92, 200, 228, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* Fields */
.upload-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.field-row {
  display: flex;
  gap: 12px;
}
.field-row .field { flex: 1; }

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(197, 213, 234, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: all var(--duration) var(--ease-out);
}
.field input::placeholder {
  color: var(--text-muted);
}
.field input:focus,
.field select:focus {
  border-color: var(--border-hover);
  background: rgba(197, 213, 234, 0.08);
}

/* Progress */
.upload-progress {
  margin-bottom: 16px;
}
.upload-progress[hidden] { display: none; }

.progress-bar {
  height: 4px;
  background: rgba(197, 213, 234, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-glow), var(--aurora));
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Upload button */
.btn-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--cyan-glow), var(--aurora));
  color: var(--midnight);
  transition: all var(--duration) var(--ease-out);
}
.btn-upload:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(92, 200, 228, 0.3);
}
.btn-upload:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Footer ────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 48px 24px 32px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* ── Animations ────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes itemReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 768px) {
  .site-header { padding: 36px 16px 16px; }

  .stats-bar { gap: 28px; padding: 12px 16px; }
  .stat-number { font-size: 1.4rem; }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .search-wrap input {
    width: 100%;
  }
  .search-wrap input:focus {
    width: 100%;
  }

  .gallery {
    padding: 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-item .item-info {
    padding: 8px 10px;
  }

  .item-caption { font-size: 0.72rem; }
  .item-day { font-size: 0.58rem; padding: 2px 6px; }
  .item-uploader { display: none; }

  /* Lightbox mobile */
  .lightbox-content { max-width: 100vw; }
  .lightbox-media img,
  .lightbox-media video {
    max-width: 100vw;
    max-height: 70vh;
    border-radius: 0;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  /* Upload mobile */
  .upload-panel {
    max-height: 95vh;
    padding: 20px 16px 28px;
  }

  .field-row {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .gallery-item .thumb-wrap {
    aspect-ratio: 1;
  }

  .gallery-item .item-info {
    padding: 6px 8px;
  }

  .gallery-item .item-meta {
    gap: 4px;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1600px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── Scroll Reveal Utility ─────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
