/* =============================================================
   FoodLog — Central Design System
   app.css — importeres på alle sider
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   Tema: Dark luxury editorial — varm sort, guld, varmt hvid
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
  /* Farver */
  --clr-bg:         #0C0A08;
  --clr-bg-2:       #131008;
  --clr-surface:    #1A1612;
  --clr-surface-2:  #221E18;
  --clr-border:     #2A2420;
  --clr-border-2:   #3A3028;

  --clr-gold:       #C9943A;
  --clr-gold-light: #DDB060;
  --clr-gold-dim:   #7A5820;
  --clr-gold-glow:  rgba(201, 148, 58, 0.15);

  --clr-text:       #F5EFE6;
  --clr-text-2:     #C4B8A8;
  --clr-text-3:     #8A7A6A;
  --clr-text-4:     #4A3F35;

  --clr-success:    #5C9E6B;
  --clr-error:      #C0514A;
  --clr-warning:    #C9943A;

  /* Typografi */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Skriftstørrelser */
  --text-xs:   0.6875rem;   /* 11px */
  --text-sm:   0.8125rem;   /* 13px */
  --text-base: 0.9375rem;   /* 15px */
  --text-md:   1.0625rem;   /* 17px */
  --text-lg:   1.25rem;     /* 20px */
  --text-xl:   1.5rem;      /* 24px */
  --text-2xl:  2rem;        /* 32px */
  --text-3xl:  2.75rem;     /* 44px */
  --text-4xl:  3.75rem;     /* 60px */
  --text-5xl:  5rem;        /* 80px */

  /* Spacing */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Borders */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 32px rgba(201, 148, 58, 0.2);

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:  150ms;
  --dur:       250ms;
  --dur-slow:  400ms;

  /* Layout */
  --max-width:      480px;   /* mobil-first, smal */
  --max-width-wide: 720px;
  --nav-height:     64px;
}

/* =============================================================
   RESET + BASE
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--clr-gold); text-decoration: none; }
a:hover { color: var(--clr-gold-light); }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* =============================================================
   TYPOGRAFI
   ============================================================= */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.display-md {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.15;
}
.display-sm {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.2;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-weight: 500; }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
}
.caption {
  font-size: var(--text-sm);
  color: var(--clr-text-3);
}
.label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-2);
  letter-spacing: 0.03em;
}

/* =============================================================
   BAGGRUND — grain texture overlay
   ============================================================= */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Primær — guld */
.btn-primary {
  background: var(--clr-gold);
  color: #0C0A08;
}
.btn-primary:hover:not(:disabled) {
  background: var(--clr-gold-light);
  color: #0C0A08;
  box-shadow: var(--shadow-gold);
}

/* Sekundær — outlined */
.btn-secondary {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border-2);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--clr-gold-dim);
  color: var(--clr-gold-light);
  background: var(--clr-gold-glow);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--clr-text-3);
  padding: 10px 16px;
}
.btn-ghost:hover:not(:disabled) { color: var(--clr-text); }

/* Danger */
.btn-danger {
  background: transparent;
  color: var(--clr-error);
  border: 1px solid rgba(192, 81, 74, 0.3);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(192, 81, 74, 0.1);
  border-color: var(--clr-error);
}

/* Full width */
.btn-full { width: 100%; }

/* Large */
.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-base);
}

/* Icon button */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  color: var(--clr-text-2);
  border: 1px solid var(--clr-border);
}
.btn-icon:hover { color: var(--clr-text); border-color: var(--clr-border-2); }

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--sp-2);
}

/* =============================================================
   FORM ELEMENTS
   ============================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-size: max(16px, var(--text-base));  /* min 16px forhindrer zoom på iOS */
  padding: 14px 16px;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
  outline: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--clr-text-4);
}
.form-input:hover,
.form-textarea:hover {
  border-color: var(--clr-border-2);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--clr-gold-dim);
  box-shadow: 0 0 0 3px var(--clr-gold-glow);
  background: var(--clr-surface-2);
}
.form-input.error { border-color: var(--clr-error); }
.form-hint {
  font-size: var(--text-sm);
  color: var(--clr-text-3);
}
.form-error {
  font-size: var(--text-sm);
  color: var(--clr-error);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A7A6A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

/* =============================================================
   STJERNE-RATING (tappable stars)
   ============================================================= */
.star-rating {
  display: flex;
  gap: var(--sp-1);
}
.star {
  font-size: 28px;
  cursor: pointer;
  color: var(--clr-border-2);
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-back);
  line-height: 1;
  user-select: none;
}
.star:hover,
.star.active {
  color: var(--clr-gold);
  transform: scale(1.15);
}
.star.active ~ .star { color: var(--clr-border-2); }

/* =============================================================
   CARDS
   ============================================================= */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-body { padding: var(--sp-6); }
.card-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
}
.card-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--clr-border);
}

/* Klikbar card */
.card-link {
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.card-link:hover {
  border-color: var(--clr-border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-link:active { transform: translateY(0); }

/* =============================================================
   VENUE CARD
   ============================================================= */
.venue-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.venue-card:hover {
  border-color: var(--clr-gold-dim);
  background: var(--clr-surface-2);
}
.venue-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.venue-info { flex: 1; min-width: 0; }
.venue-name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.venue-meta {
  font-size: var(--text-sm);
  color: var(--clr-text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.venue-distance {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--clr-gold);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* =============================================================
   VISIT CARD (feed)
   ============================================================= */
.visit-card {
  padding: var(--sp-5) var(--sp-6);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}
.visit-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--clr-gold-glow);
  border: 1px solid var(--clr-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-gold);
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* =============================================================
   RATING DISPLAY (kompakt — bruges i feed/venue)
   ============================================================= */
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: var(--text-xs);
  color: var(--clr-text-2);
}
.rating-pill .star-icon {
  color: var(--clr-gold);
  font-size: 10px;
}

/* =============================================================
   VISIBILITY BADGES
   ============================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.badge-private  { background: rgba(74, 63, 53, 0.4); color: var(--clr-text-3); }
.badge-friends  { background: rgba(201, 148, 58, 0.15); color: var(--clr-gold); }
.badge-public   { background: rgba(92, 158, 107, 0.15); color: var(--clr-success); }

/* =============================================================
   ALERTS / NOTICES
   ============================================================= */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.alert-error   { background: rgba(192, 81, 74, 0.12); border: 1px solid rgba(192, 81, 74, 0.3); color: #E87E78; }
.alert-success { background: rgba(92, 158, 107, 0.12); border: 1px solid rgba(92, 158, 107, 0.3); color: #7DC48A; }
.alert-info    { background: var(--clr-gold-glow); border: 1px solid rgba(201, 148, 58, 0.3); color: var(--clr-gold-light); }

/* =============================================================
   BOTTOM NAVIGATION (app sider)
   ============================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(12, 10, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-4);
  color: var(--clr-text-4);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
}
.nav-item:hover { color: var(--clr-text-3); }
.nav-item.active { color: var(--clr-gold); }
.nav-item svg, .nav-item .nav-icon { font-size: 22px; }

/* Primær nav-knap (midt — log visit) */
.nav-item-primary {
  position: relative;
  color: var(--clr-bg);
}
.nav-item-primary .nav-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--clr-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: 0 4px 20px rgba(201, 148, 58, 0.4);
  transition: all var(--dur) var(--ease-back);
}
.nav-item-primary:hover .nav-icon-wrap,
.nav-item-primary.active .nav-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(201, 148, 58, 0.55);
}

/* =============================================================
   PAGE LAYOUT
   ============================================================= */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5);
  padding-bottom: calc(var(--nav-height) + var(--sp-8));
  min-height: 100dvh;
}
.page-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5);
}
.page-header {
  margin-bottom: var(--sp-8);
}
.page-header h1 {
  color: var(--clr-text);
  margin-bottom: var(--sp-1);
}
.page-header p {
  color: var(--clr-text-3);
  font-size: var(--text-sm);
}

/* =============================================================
   DIVIDERS
   ============================================================= */
.divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-6) 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--clr-text-4);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: var(--sp-6) 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--clr-border);
}

/* =============================================================
   SKELETON LOADING
   ============================================================= */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--clr-surface) 0%,
    var(--clr-surface-2) 50%,
    var(--clr-surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================================
   UTILITY CLASSES
   ============================================================= */
.text-gold    { color: var(--clr-gold); }
.text-muted   { color: var(--clr-text-3); }
.text-dim     { color: var(--clr-text-4); }
.text-error   { color: var(--clr-error); }
.text-success { color: var(--clr-success); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--sp-2); }
.gap-3  { gap: var(--sp-3); }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }

.w-full  { width: 100%; }
.hidden  { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================
   ANIMATIONER
   ============================================================= */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes gold-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.animate-fade-in  { animation: fade-in  var(--dur-slow) var(--ease) both; }
.animate-slide-up { animation: slide-up var(--dur-slow) var(--ease) both; }
.animate-scale-in { animation: scale-in var(--dur-slow) var(--ease-back) both; }

/* Staggered children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }

/* =============================================================
   SCROLLBAR
   ============================================================= */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--clr-border-2);
  border-radius: var(--radius-full);
}

/* =============================================================
   SELECTION
   ============================================================= */
::selection {
  background: var(--clr-gold-glow);
  color: var(--clr-gold-light);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 400px) {
  :root {
    --text-4xl: 3rem;
    --text-5xl: 3.75rem;
  }
  .page { padding: var(--sp-5) var(--sp-4); }
}

@media (min-width: 600px) {
  .bottom-nav {
    max-width: var(--max-width);
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: 1px solid var(--clr-border);
    border-bottom: none;
  }
}

/* =============================================================
   APP COMPONENTS — fælles på tværs af alle app-sider
   ============================================================= */

/* ── Top bar ─────────────────────────────────────────────────── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,10,8,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0 var(--sp-5);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.top-bar-logo,
.top-bar-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--clr-text);
}
.top-bar-logo span,
.top-bar-title span { color: var(--clr-gold); }
.top-bar-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar-greeting {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  letter-spacing: 0.05em;
}

/* ── Back button ─────────────────────────────────────────────── */
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
}
.back-btn:hover { border-color: var(--clr-border-2); color: var(--clr-text); }

/* ── Section labels ──────────────────────────────────────────── */
.section-title {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-4);
  margin-bottom: var(--sp-3);
}
/* section-label er synonym — bruges i log.php */
.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-4);
  margin-bottom: var(--sp-1);
  padding: 0 var(--sp-1);
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
}
.empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-4);
  opacity: 0.3;
}
.empty-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--clr-text-2);
  margin-bottom: var(--sp-2);
}
.empty-sub {
  font-size: var(--text-sm);
  color: var(--clr-text-4);
  line-height: 1.6;
}
.empty-cta {
  display: inline-block;
  margin-top: var(--sp-6);
  padding: 12px 24px;
  background: var(--clr-gold-glow);
  border: 1px solid var(--clr-gold-dim);
  border-radius: var(--radius-full);
  color: var(--clr-gold);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.empty-cta:hover { background: rgba(201,148,58,0.2); color: var(--clr-gold-light); }

/* ── Skeleton størrelser ─────────────────────────────────────── */
.skeleton-card  { height: 72px;  border-radius: var(--radius-lg); }
.skeleton-visit { height: 90px;  border-radius: var(--radius-lg); }
.skeleton-stat  { height: 90px;  border-radius: var(--radius-lg); }
.skeleton-block { height: 120px; border-radius: var(--radius-lg); }
.skeleton-hero  { height: 160px; border-radius: var(--radius-lg); }

/* ── Load more knap ──────────────────────────────────────────── */
.load-more-btn {
  width: 100%;
  padding: 14px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  color: var(--clr-text-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  margin-top: var(--sp-2);
}
.load-more-btn:hover { border-color: var(--clr-border-2); color: var(--clr-text-2); }

/* ── Rating chip ─────────────────────────────────────────────── */
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: var(--text-xs);
  color: var(--clr-text-2);
}
.rating-chip .score,
.rating-chip .stars { color: var(--clr-gold); }
.rating-chip .stars { letter-spacing: -1px; }

/* ── Stats grid ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
  animation: scale-in 0.4s var(--ease-back) both;
}
.stat-card:nth-child(2) { animation-delay: 60ms; }
.stat-card:nth-child(3) { animation-delay: 120ms; }
.stat-card:nth-child(4) { animation-delay: 180ms; }
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--clr-gold);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Filter chips ────────────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-5);
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-3);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.filter-chip.active {
  background: var(--clr-gold-glow);
  border-color: var(--clr-gold-dim);
  color: var(--clr-gold);
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--sp-4));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: var(--text-sm);
  color: var(--clr-text);
  white-space: nowrap;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s var(--ease-back);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.success { border-color: rgba(92,158,107,0.4);  color: #7DC48A; }
.toast.error   { border-color: rgba(192,81,74,0.4);   color: #E87E78; }
.toast.show    { opacity: 1; transform: translateX(-50%) translateY(0); }
/* Settings-sider har ingen nav — toast sidder lavere */
.toast-no-nav {
  bottom: var(--sp-8);
}

/* ── Visit card ──────────────────────────────────────────────── */
.visit-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  animation: slide-up 0.3s var(--ease) both;
}
.visit-card:hover { border-color: var(--clr-border-2); transform: translateY(-1px); }
.visit-card:active { transform: scale(0.99); }
.visit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}
.visit-venue {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--clr-text);
  line-height: 1.2;
}
.visit-date {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  flex-shrink: 0;
  margin-left: var(--sp-3);
  margin-top: 3px;
}
.visit-meta {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  margin-bottom: var(--sp-3);
}
.visit-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.visit-note {
  font-size: var(--text-sm);
  color: var(--clr-text-3);
  font-style: italic;
  border-left: 2px solid var(--clr-border-2);
  padding-left: var(--sp-3);
  line-height: 1.5;
  margin-top: var(--sp-3);
}

/* ── Feed card ───────────────────────────────────────────────── */
.feed-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-4);
  animation: slide-up 0.35s var(--ease) both;
}
.feed-card:active { transform: scale(0.99); }
.feed-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--clr-border);
}
.feed-card-body { padding: var(--sp-4) var(--sp-5); }
.feed-user-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text);
}
.feed-time {
  font-size: var(--text-xs);
  color: var(--clr-text-4);
  margin-top: 2px;
}
.feed-visibility { margin-left: auto; font-size: 13px; opacity: 0.5; }
.feed-venue-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--clr-text);
  margin-bottom: 2px;
  cursor: pointer;
  transition: color var(--dur-fast);
}
.feed-venue-name:hover { color: var(--clr-gold-light); }
.feed-venue-meta { font-size: var(--text-xs); color: var(--clr-text-4); margin-bottom: var(--sp-4); }
.feed-note {
  font-size: var(--text-sm);
  color: var(--clr-text-3);
  font-style: italic;
  border-left: 2px solid var(--clr-border-2);
  padding-left: var(--sp-3);
  line-height: 1.5;
}
.ratings-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }

/* ── Page wrapper (app sider med nav) ────────────────────────── */
.app-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-5);
  padding-bottom: calc(var(--nav-height) + var(--sp-8));
}