/* ═══════════════════════════════════════════════════════
   main.css – Pantone-tema (grøn, gul, creme)
   ═══════════════════════════════════════════════════════ */

:root {
  /* Pantone-palet */
  --green:  #213629;   /* P 177-16 C */
  --yellow: #FCDC41;   /* P 4-7 C */
  --cream:  #F0E6D0;   /* P 8-9 C */

  /* Baggrunde – creme */
  --bg:       #F0E6D0;
  --surface:  #FFFBF2;
  --surface2: #F7F0E1;
  --surface3: #E9DEC6;

  /* Kort */
  --ocean: #BFD3D1;
  --land:  #EDE3CB;
  --land-dim: #D3DED8;

  /* Statusfarver */
  --visited:       #213629;   /* mørkegrøn */
  --lived:         #7B6488;   /* dæmpet lilla – har boet */
  --planned:       #4F7591;   /* dæmpet blå */
  --wishlist:      #FCDC41;   /* gul */
  --wishlist-text: #7A5F00;   /* mørk gul – læsbar tekst */

  /* Tekst – mørkegrøn på creme */
  --text:       #213629;
  --text-muted: #5E6B5F;
  --text-dim:   #A09F8C;

  /* Accent */
  --accent:       #213629;
  --accent-light: #3E5A48;

  /* Fejl / slet */
  --danger: #c0392b;

  /* Kanter og skygger */
  --border:    rgba(33, 54, 41, 0.09);
  --shadow:    0 8px 32px rgba(33, 54, 41, 0.12);
  --shadow-sm: 0 2px 12px rgba(33, 54, 41, 0.08);
  --shadow-lg: 0 16px 48px rgba(33, 54, 41, 0.16);

  /* Navigation */
  --nav-height: 72px;

  /* Animationer */
  --transition:      0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Afrunding */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  overscroll-behavior: none;
}

body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}

/* ── App-container ──────────────────────────────────── */
#app {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Visninger ──────────────────────────────────────── */
.view {
  position: absolute;
  inset: 0;
  bottom: var(--nav-height);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.view.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Rejse- og har-været-visninger ──────────────────── */
#view-trips,
#view-visited {
  overflow-y: auto;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

/* ── Bottom navigation – mørk flydende pill ─────────── */
#bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 20px;
  right: 20px;
  height: 60px;
  background: var(--green);
  border-radius: 30px;
  display: flex;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(33, 54, 41, 0.35);
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow: hidden;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(240, 230, 208, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color var(--transition);
  padding: 8px 0;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.nav-btn.active {
  color: var(--yellow);
}

.nav-btn.active svg {
  filter: drop-shadow(0 0 6px rgba(252, 220, 65, 0.45));
}

.nav-btn:active svg {
  transform: scale(0.9);
}

/* ── Toast ──────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--green);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Typografi ──────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 13px; }
.text-xs     { font-size: 11px; }
.text-center { text-align: center; }

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge.visited  { background: rgba(33, 54, 41, 0.12);   color: var(--visited); }
.badge.lived    { background: rgba(123, 100, 136, 0.12);  color: var(--lived); }
.badge.planned  { background: rgba(79, 117, 145, 0.12);  color: var(--planned); }
.badge.wishlist { background: rgba(252, 220, 65, 0.35);  color: var(--wishlist-text); }

/* ── Stjerner ───────────────────────────────────────── */
.stars { display: flex; gap: 2px; }

.star {
  font-size: 22px;
  cursor: pointer;
  color: var(--text-dim);
  transition: color var(--transition), transform var(--transition);
  user-select: none;
  line-height: 1;
}

.star.filled { color: var(--yellow); }
.star:active { transform: scale(1.2); }

/* ── Hjælpeklasser ──────────────────────────────────── */
.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-8    { gap: 8px; }
.gap-12   { gap: 12px; }
.gap-16   { gap: 16px; }
.mt-8     { margin-top: 8px; }
.mt-12    { margin-top: 12px; }
.mt-16    { margin-top: 16px; }
.mt-24    { margin-top: 24px; }
.mb-8     { margin-bottom: 8px; }
.hidden   { display: none !important; }
