/* ═══════════════════════════════════════════════════════════════
   VERSIZO WORLD TOUR - Design System
   Premium dark theme with golden accents matching Versizo brand
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --gold-primary: #d4a853;
  --gold-light: #f0d48a;
  --gold-dark: #a07d3a;
  --gold-glow: rgba(212, 168, 83, 0.3);

  --amber: #c97b3b;
  --cream: #f5e6c8;
  --text-primary: #f0f0f0;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.2);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.2);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.2);

  --border: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 168, 83, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 24px rgba(212, 168, 83, 0.15);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 72px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 168, 83, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold-primary);
  letter-spacing: -0.5px;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
}

.nav-brand .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-primary);
  background: var(--bg-glass);
  border-color: var(--border-gold);
}

.nav-links a.active {
  background: rgba(212, 168, 83, 0.1);
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-section {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Map Container (Home) ──────────────────────────────────── */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  height: calc(100vh - var(--nav-height) - 2rem);
  padding: 1rem 2rem;
}

#world-map {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 1;
}

/* Map container */
.leaflet-container { background: var(--bg-primary) !important; }

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 4px;
}

.map-sidebar::-webkit-scrollbar { width: 4px; }
.map-sidebar::-webkit-scrollbar-track { background: transparent; }
.map-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.card-header .icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

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

/* ── Stats Card ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Progress Bar ──────────────────────────────────────────── */
.progress-container {
  margin: 0.75rem 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
  transition: width 1s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Destination List ──────────────────────────────────────── */
.dest-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.dest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.dest-item:hover {
  background: var(--bg-glass);
  border-color: var(--border);
}

.dest-item.visited {
  color: var(--green);
}

.dest-item.current {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--border-gold);
  color: var(--gold-primary);
  font-weight: 600;
}

.dest-item.locked {
  color: var(--red);
}

.dest-item.future {
  color: var(--text-muted);
}

.dest-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dest-dot.visited { background: var(--green); }
.dest-dot.current { background: var(--gold-primary); box-shadow: 0 0 8px var(--gold-glow); }
.dest-dot.locked { background: var(--red); }
.dest-dot.future { background: var(--text-muted); opacity: 0.4; }

.dest-km {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Status Badge ──────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.traveling {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.locked {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.complete {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ── Hero Sections (Shop / Contact) ────────────────────────── */
.hero-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 2rem;
}

.hero-container {
  max-width: 800px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero-image {
  width: 320px;
  height: 320px;
  border-radius: var(--radius-xl);
  margin: 0 auto 2rem;
  object-fit: cover;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-gold);
  animation: float 6s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Typing animation */
.typing-dots::after {
  content: '';
  animation: typing 1.5s steps(3) infinite;
}

@keyframes typing {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ── Contact Form ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  align-items: center;
}

.contact-image-container {
  text-align: center;
}

.contact-image {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-gold);
  animation: float 6s ease-in-out infinite;
}

.contact-form-container {
  max-width: 500px;
}

.contact-form-container h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-form-container p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--amber));
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 168, 83, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-gold);
}

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Admin Panel ───────────────────────────────────────────── */
.admin-login {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
}

.admin-login h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--gold-primary);
}

.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.admin-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-entry {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.log-time {
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: monospace;
}

.log-msg {
  color: var(--text-secondary);
}

.contact-entry {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.contact-entry .name {
  font-weight: 600;
  color: var(--gold-primary);
}

.contact-entry .email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-entry .msg {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Toast Notifications ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  max-width: 350px;
}

.toast.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}

.toast.info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.3);
}

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

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

/* ── Leaflet Custom Popup ──────────────────────────────────── */
.leaflet-popup-content-wrapper {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-tip {
  background: var(--bg-secondary) !important;
  border-color: var(--border-gold) !important;
}

.leaflet-popup-content {
  margin: 12px !important;
  font-family: var(--font-body) !important;
}

.leaflet-popup-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.leaflet-popup-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

.popup-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 6px;
}

.popup-status.visited { background: var(--green-dim); color: var(--green); }
.popup-status.current { background: rgba(212, 168, 83, 0.2); color: var(--gold-primary); }
.popup-status.future { background: var(--bg-glass); color: var(--text-muted); }

/* ── Hedgehog Marker ───────────────────────────────────────── */
.hedgehog-marker {
  background: none !important;
  border: none !important;
}

.hedgehog-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hedgehog-emoji {
  font-size: 2.2rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 3px 10px rgba(212, 168, 83, 0.6));
  animation: hedgehog-bounce 2.5s ease-in-out infinite;
}

.hedgehog-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.35) 0%, transparent 70%);
  animation: hedgehog-pulse-ring 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes hedgehog-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-5px) scale(1.05); }
  50% { transform: translateY(-8px) scale(1.08); }
  75% { transform: translateY(-3px) scale(1.02); }
}

@keyframes hedgehog-pulse-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* ── Instagram Counter ─────────────────────────────────────── */
.follower-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.follower-counter svg {
  width: 16px;
  height: 16px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .map-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 60vh auto;
    height: auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-mobile-btn {
    display: block;
  }

  .map-layout {
    padding: 0.5rem;
    gap: 1rem;
    grid-template-rows: 55vh auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .hero-image {
    width: 240px;
    height: 240px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .map-layout {
    grid-template-rows: 45vh auto;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }
}

/* ── Loading Spinner ───────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Utility Classes ───────────────────────────────────────── */
.text-gold { color: var(--gold-primary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
