/* GeoMoments — Surreal Edition */
/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cormorant Garamond', serif;
  color: rgba(255, 255, 255, 0.85);
  background: #0a0712;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.6; }

/* ===== CANVAS BACKGROUND ===== */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
.vignette {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(10,7,18,0.7) 100%);
}

/* ===== TOP MINI MENUBAR ===== */
.top-bar {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; gap: 4px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 40px;
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.top-bar .brand {
  font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.8); margin-right: 6px;
}
.top-bar .sep { color: rgba(255,255,255,0.12); margin: 0 4px; }
.top-bar a { padding: 4px 10px; border-radius: 20px; transition: all 0.3s; }
.top-bar a:hover, .top-bar a.active {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); opacity: 1;
}

/* ===== LEFT SIDEBAR NAV ===== */
.side-nav {
  position: fixed; left: 40px; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 32px; padding: 24px 0;
}
.side-nav a {
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl; transition: all 0.5s ease; position: relative; padding: 4px 0;
}
.side-nav a::before, .side-nav a::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 1px; height: 0; background: rgba(255,255,255,0.15); transition: height 0.5s ease;
}
.side-nav a::before { top: -8px; }
.side-nav a::after { bottom: -8px; }
.side-nav a:hover, .side-nav a.active { color: rgba(255,255,255,0.7); opacity: 1; }
.side-nav a:hover::before, .side-nav a:hover::after,
.side-nav a.active::before, .side-nav a.active::after { height: 12px; }

/* ===== MAIN CONTENT ===== */
.main {
  position: relative; z-index: 10; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 120px 80px 120px; text-align: center;
}

/* ===== HERO ===== */
.hero { max-width: 720px; margin-bottom: 60px; }
.hero h1 {
  font-size: clamp(48px, 8vw, 96px); font-weight: 300; letter-spacing: 0.08em;
  line-height: 1.1;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(200,180,255,0.6));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 24px;
}
.hero .sub {
  font-family: 'Inter', sans-serif; font-weight: 200;
  font-size: clamp(14px, 1.5vw, 18px); letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 32px;
}
.hero .verse {
  font-size: clamp(18px, 2.5vw, 28px); font-weight: 300; font-style: italic;
  line-height: 1.6; color: rgba(255,255,255,0.5); max-width: 560px; margin: 0 auto;
}
.hero .verse .word {
  display: inline-block; transition: all 0.8s ease; cursor: default;
}
.hero .verse .word:hover { color: rgba(200,180,255,0.8); transform: scale(1.04); }
.hero--small { padding: 40px 0 20px; }
.hero--small h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 0; }
.hero-desc {
  font-family: 'Inter', sans-serif; font-weight: 200; font-size: 14px;
  color: rgba(255,255,255,0.4); margin-top: 12px;
}

/* ===== FEATURED CARD ===== */
.featured-wrapper { margin-bottom: 50px; }
.featured-card {
  display: grid; grid-template-columns: 1.2fr 1fr; text-align: left;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover { border-color: rgba(200,180,255,0.2); transform: translateY(-4px); }
.featured-img {
  min-height: 350px; background-size: cover; background-position: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover .featured-img { transform: scale(1.04); }
.featured-img--empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(40,30,60,0.5), rgba(20,15,30,0.5));
}
.featured-img--empty span { font-size: 64px; color: rgba(200,180,255,0.12); }
.featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-tag {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 300;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(200,180,255,0.4); margin-bottom: 12px;
}
.featured-title {
  font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.2;
  color: rgba(255,255,255,0.9); margin-bottom: 10px;
  transition: color 0.3s;
}
.featured-card:hover .featured-title { color: rgba(200,180,255,0.8); }
.featured-meta {
  display: flex; gap: 16px; font-family: 'Inter', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.3); margin-bottom: 14px;
}
.featured-desc {
  font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.featured-link {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 300;
  letter-spacing: 0.05em; color: rgba(200,180,255,0.4);
  transition: color 0.3s;
}
.featured-card:hover .featured-link { color: rgba(200,180,255,0.7); }

/* ===== MOMENTS GRID ===== */
.moments-section { width: 100%; max-width: 960px; margin: 0 auto; }
.section-heading {
  font-family: 'Inter', sans-serif; font-weight: 200; font-size: 14px;
  letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.2);
  margin-bottom: 40px;
}
.moments-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.moment-card {
  position: relative; display: block; height: 320px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.moment-card:hover { border-color: rgba(200,180,255,0.2); transform: translateY(-4px); }
.moment-card-img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center; z-index: 1;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.moment-card:hover .moment-card-img { transform: scale(1.06); }
.moment-card-noimg {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(40,30,60,0.5), rgba(20,15,30,0.5));
}
.moment-card-noimg span { font-size: 48px; color: rgba(200,180,255,0.15); }
.moment-card-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,7,18,0.92) 0%, rgba(10,7,18,0.2) 60%, transparent 100%);
  z-index: 2;
}
.moment-card-content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 3; text-align: left;
}
.moment-card-date {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(200,180,255,0.5); margin-bottom: 6px;
}
.moment-card-date svg { opacity: 0.5; }
.moment-card-title {
  font-size: 20px; font-weight: 500; line-height: 1.25;
  color: rgba(255,255,255,0.9); margin: 0 0 4px 0;
}
.moment-card-desc {
  font-family: 'Inter', sans-serif; font-weight: 200; font-size: 12px;
  color: rgba(255,255,255,0.4); line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.moment-card-loc {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 11px; color: rgba(255,255,255,0.3);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 50px;
}
.page-btn {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.3);
  padding: 8px 16px; border: 1px solid rgba(255,255,255,0.06); border-radius: 20px;
  transition: all 0.3s;
}
.page-btn:hover { color: rgba(255,255,255,0.7); border-color: rgba(200,180,255,0.2); opacity: 1; }
.page-info {
  font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.15);
}

/* ===== DETAIL PAGE ===== */
.detail-container { max-width: 680px; width: 100%; text-align: left; }
.detail-back { margin-bottom: 24px; }
.detail-back a {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300;
  letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.detail-back a:hover { color: rgba(255,255,255,0.7); opacity: 1; }
.detail-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden; backdrop-filter: blur(10px);
}
.detail-image-wrapper { width: 100%; max-height: 500px; overflow: hidden; }
.detail-image { width: 100%; height: auto; display: block; transition: transform 0.8s ease; }
.detail-image:hover { transform: scale(1.02); }
.detail-body { padding: 32px; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px;
}
.detail-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase; color: rgba(200,180,255,0.5);
}
.detail-meta-item svg { opacity: 0.5; }
.detail-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 400; letter-spacing: 0.03em;
  line-height: 1.2; margin-bottom: 16px; color: rgba(255,255,255,0.9);
}
.detail-description p {
  font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.55); font-weight: 300;
}
.detail-story {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.detail-story p {
  font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.45);
  font-style: italic; font-weight: 300;
}
.detail-nav {
  display: flex; justify-content: space-between; margin-top: 32px; width: 100%;
}
.detail-nav-link {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.3);
  transition: color 0.3s; max-width: 45%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-nav-link:hover { color: rgba(255,255,255,0.7); opacity: 1; }

/* ===== FLASH MESSAGES ===== */
.flash-container {
  position: fixed; top: 80px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
}
.flash-message {
  padding: 12px 20px; border-radius: 12px;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 12px;
  animation: flashIn 0.4s ease;
}
@keyframes flashIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.flash-close {
  background: none; border: none; color: rgba(255,255,255,0.3);
  cursor: pointer; font-size: 14px; padding: 2px;
}
.flash-close:hover { color: rgba(255,255,255,0.7); }
.flash-error { border-color: rgba(255,100,100,0.3); color: rgba(255,160,160,0.9); }

/* ===== EMPTY & LOADING ===== */
.empty-state { text-align: center; padding: 80px 20px; color: rgba(255,255,255,0.25); font-size: 16px; }

/* ===== FLOATING TAGLINE ===== */
.floating-tag {
  font-family: 'Inter', sans-serif; font-weight: 200; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  animation: pulse-glow 4s ease-in-out infinite;
  margin-top: 60px; margin-bottom: 20px;
}
@keyframes pulse-glow { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.4; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .main { padding: 120px 80px 60px 80px; } }
@media (max-width: 768px) {
  .main { padding: 100px 40px 60px 60px; }
  .top-bar { top: 16px; padding: 6px 14px; font-size: 11px; gap: 2px; }
  .top-bar .brand { font-size: 13px; }
  .top-bar a { padding: 3px 6px; font-size: 10px; }
  .side-nav { left: 16px; gap: 20px; }
  .side-nav a { font-size: 9px; letter-spacing: 0.15em; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .featured-body { padding: 24px; }
  .moments-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .moment-card { height: 260px; }
  .detail-body { padding: 24px; }
  .floating-tag { font-size: 9px; }
}
@media (max-width: 480px) {
  .main { padding: 100px 24px 60px 48px; }
  .top-bar { padding: 5px 10px; gap: 0; }
  .top-bar .sep { margin: 0 2px; }
  .top-bar .brand { font-size: 11px; margin-right: 2px; }
  .top-bar a { padding: 2px 4px; font-size: 8px; letter-spacing: 0.02em; }
  .side-nav { left: 10px; gap: 14px; }
  .side-nav a { font-size: 7px; letter-spacing: 0.12em; }
  .moments-grid { grid-template-columns: 1fr; }
  .moment-card { height: 240px; }
  .detail-body { padding: 20px; }
  .section-heading { font-size: 12px; }
  .detail-nav { flex-direction: column; gap: 12px; align-items: center; }
  .pagination { flex-wrap: wrap; gap: 12px; }
}
