/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f0f;
  color: #e8e8e8;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  background: #141414;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-link { display: flex; align-items: center; }
.logo { height: 44px; width: auto; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.header-nav { display: flex; gap: 24px; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #aaa;
  transition: color 0.15s;
}
.nav-link:hover { color: #fff; }

/* ── Footer ── */
.site-footer {
  background: #141414;
  border-top: 1px solid #222;
  padding: 24px 0;
  margin-top: auto;
}
.site-footer p { font-size: 0.8125rem; color: #666; text-align: center; }
.site-footer a { color: #888; }
.site-footer a:hover { color: #ccc; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: #ff3d5a; color: #fff; }
.btn--small {
  padding: 8px 14px;
  font-size: 0.8125rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--small:hover { background: rgba(0,0,0,0.9); opacity: 1; }
.btn--review {
  background: #fbbc04;
  color: #111;
  padding: 14px 28px;
  font-size: 1rem;
}

/* ── Gallery Index ── */
.page-index {
  padding-top: 48px;
  padding-bottom: 64px;
}
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.page-subtitle {
  margin-top: 8px;
  color: #888;
  font-size: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 380px)  { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card {
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.gallery-card:hover { border-color: #444; transform: translateY(-2px); }
.gallery-card--locked { opacity: 1; }

.card-lock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 8px 4px 6px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.card-thumb {
  aspect-ratio: 3 / 2;
  background: #111;
  overflow: hidden;
  position: relative;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.gallery-card:hover .card-thumb img { transform: scale(1.03); }

.card-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1a1a1a;
  color: #666;
  font-size: 0.8125rem;
}
.lock-icon { width: 28px; height: 28px; }

.card-no-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.card-no-image svg { width: 40px; height: 40px; }

.card-body { padding: 12px 14px 14px; }
.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8e8e8;
  line-height: 1.3;
  margin-bottom: 4px;
}
.card-date { font-size: 0.75rem; color: #666; margin-bottom: 6px; }
.card-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #262626;
  color: #aaa;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.card-regions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.region-tag {
  font-size: 0.7rem;
  background: #1e2a3a;
  color: #7aabde;
  padding: 2px 7px;
  border-radius: 4px;
}
a.region-tag--link:hover { background: #253650; }
.card-counts { font-size: 0.75rem; color: #555; }

/* ── Single Gallery Page ── */
.page-gallery {
  padding-top: 40px;
  padding-bottom: 64px;
}
.back-link {
  display: inline-block;
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.back-link:hover { color: #ccc; }

.gallery-header {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.gallery-header__meta { flex: 1; }
.gallery-header__cover {
  flex-shrink: 0;
  width: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #242424;
}
.gallery-header__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  background: #111;
}
@media (max-width: 700px) {
  .gallery-header { flex-direction: column-reverse; }
  .gallery-header__cover { width: 100%; }
}

.gallery-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.gallery-date { font-size: 0.875rem; color: #777; margin-bottom: 8px; }
.gallery-regions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.gallery-description {
  font-size: 0.9375rem;
  color: #aaa;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 560px;
}

.gallery-actions {
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Media filter tabs ── */
.media-filter {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #222;
  padding-bottom: 12px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.filter-btn:hover { background: #1e1e1e; color: #ccc; }
.filter-btn--active { background: #ff3d5a; color: #fff; border-color: #ff3d5a; }

/* ── Media grid ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
@media (max-width: 860px)  { .media-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 600px)  { .media-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; } }

.media-item { position: relative; }
.media-item--hidden { display: none !important; }

.media-item__thumb {
  aspect-ratio: 3 / 2;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.media-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.media-item__thumb:hover img { transform: scale(1.04); }

.media-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}
.media-item__thumb:hover .media-item__overlay { opacity: 1; }

.media-item__thumb--video .video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
}
.video-placeholder svg { width: 40px; height: 40px; }

/* ── Password page ── */
.page-password {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.password-card {
  background: #1a1a1a;
  border: 1px solid #282828;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.password-lock { width: 40px; height: 40px; margin: 0 auto 16px; color: #555; }
.password-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.password-subtitle { font-size: 0.875rem; color: #777; margin-bottom: 24px; }
.password-error {
  background: #2d1a1a;
  border: 1px solid #5a2a2a;
  color: #e87070;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.password-form { display: flex; flex-direction: column; gap: 12px; }
.password-input {
  width: 100%;
  padding: 12px 16px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.password-input:focus { border-color: #ff3d5a; }
.password-input--error { border-color: #e87070; }

/* ── Thank you page ── */
.page-thankyou {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.thankyou-card {
  background: #1a1a1a;
  border: 1px solid #282828;
  border-radius: 16px;
  padding: 56px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.thankyou-icon { font-size: 3rem; margin-bottom: 16px; }
.thankyou-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.thankyou-subtitle { color: #888; font-size: 0.9375rem; margin-bottom: 32px; line-height: 1.6; }
.review-prompt {
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.review-text { font-size: 0.9375rem; color: #aaa; margin-bottom: 16px; line-height: 1.6; }

/* ── Review toast (single-download prompt) ── */
.review-toast {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.review-toast--visible {
  transform: translateY(0);
  pointer-events: auto;
}
.review-toast__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #161616;
  border-top: 2px solid #00C8D4;
  padding: 14px 24px;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 32px rgba(0,0,0,0.6);
}
.review-toast__star { font-size: 1.4rem; flex-shrink: 0; }
.review-toast__text {
  flex: 1;
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.45;
}
.review-toast__text strong { display: block; color: #fff; margin-bottom: 2px; font-size: 0.9375rem; }
.review-toast__btn {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.875rem;
  padding: 9px 18px;
}
.review-toast__close {
  background: transparent;
  border: none;
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s;
  border-radius: 4px;
}
.review-toast__close:hover { color: #bbb; }
@media (max-width: 600px) {
  .review-toast__inner { flex-wrap: wrap; padding: 14px 16px 12px; }
  .review-toast__star  { order: 0; }
  .review-toast__close { order: 0; margin-left: auto; }
  .review-toast__text  { order: 1; width: 100%; }
  .review-toast__btn   { order: 2; width: 100%; text-align: center; margin-top: 4px; }
}

/* ── Misc ── */
.empty-state { color: #555; font-size: 1rem; padding: 48px 0; text-align: center; }
.site-main { flex: 1; }
