/* ── INKMAP APP STYLES ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --gold:      #C8A96E;
  --gold-lt:   #E8C98E;
  --gold-dim:  rgba(200,169,110,0.12);
  --black:     #080808;
  --dark:      #111111;
  --gray:      #1C1C1C;
  --mid:       #2A2A2A;
  --border:    rgba(200,169,110,0.15);
  --text:      #F0EDE6;
  --text-dim:  rgba(240,237,230,0.55);
  --muted:     #666;
  --success:   #4CAF50;
  --danger:    #E24B4A;
  --radius:    8px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── APP SHELL ── */
#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--dark);
}

/* ── SCREENS ── */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  padding-bottom: 64px;
}
.screen.active { display: flex; }

/* ── TOP BAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 0.5px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}
.topbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.topbar-logo span { color: var(--gold); font-style: italic; }
.topbar-back {
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  background: none;
  border: none;
  font-family: inherit;
}
.topbar-back:hover { opacity: 0.8; }
.topbar-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  text-align: center;
}
.topbar-action {
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  margin-left: auto;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--black);
  border-top: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 0 12px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-item.active { opacity: 1; }
.nav-item svg { width: 22px; height: 22px; }
.nav-label { font-size: 10px; color: var(--text); letter-spacing: 0.3px; }
.nav-item.active .nav-label { color: var(--gold); }
.nav-item.active svg { stroke: var(--gold); }

/* ── SCROLL AREA ── */
.scroll { overflow-y: auto; flex: 1; }
.pad { padding: 16px; }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
  border-bottom: 0.5px solid var(--border);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 99px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
}
.filter-chip.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 500;
}

/* ── LOCATION BAR ── */
.location-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 10px;
  font-size: 12px;
  color: var(--text-dim);
  border-bottom: 0.5px solid var(--border);
}
.location-bar strong { color: var(--text); font-weight: 400; }
.location-bar .radius-btn {
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 12px;
  font-family: inherit;
  margin-left: auto;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  padding: 16px 16px 10px;
}

/* ── ARTIST CARD ── */
.artist-card {
  margin: 0 16px 12px;
  background: var(--gray);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.artist-card:hover { opacity: 0.9; transform: translateY(-1px); }

.artist-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mid);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }

.artist-info { flex: 1; min-width: 0; }
.artist-name { font-size: 15px; font-weight: 500; color: var(--text); }
.artist-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.dist-badge {
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 8px;
  border-radius: 99px;
  flex-shrink: 0;
}

.spot-pill {
  margin: 0 14px 14px;
  background: rgba(200,169,110,0.08);
  border: 0.5px solid rgba(200,169,110,0.25);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.spot-pill svg { width: 12px; height: 12px; flex-shrink: 0; }

.tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 14px 14px;
}
.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--mid);
  color: var(--text-dim);
  border: 0.5px solid var(--border);
}
.tag.gold {
  background: rgba(200,169,110,0.1);
  color: var(--gold);
  border-color: rgba(200,169,110,0.3);
}

/* ── HEART / FAV ── */
.heart-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--muted);
  transition: color 0.2s, transform 0.1s;
  padding: 4px;
  line-height: 1;
}
.heart-btn.faved { color: var(--danger); }
.heart-btn:active { transform: scale(1.3); }

/* ── GUESTSPOT CARD ── */
.guestspot-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.guestspot-row:hover { background: var(--gray); }
.date-badge {
  background: var(--mid);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  text-align: center;
  flex-shrink: 0;
  min-width: 48px;
}
.date-badge .day { font-size: 20px; font-weight: 500; line-height: 1; color: var(--gold); font-family: 'Playfair Display', serif; }
.date-badge .mon { font-size: 10px; color: var(--text-dim); margin-top: 2px; letter-spacing: 1px; }
.guestspot-info { flex: 1; }
.guestspot-city { font-size: 14px; font-weight: 500; color: var(--text); }
.guestspot-studio { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 0 0 1px;
}
.stat {
  background: var(--gray);
  padding: 16px 12px;
  text-align: center;
}
.stat-val { font-size: 20px; font-weight: 500; color: var(--text); font-family: 'Playfair Display', serif; }
.stat-lbl { font-size: 10px; color: var(--text-dim); margin-top: 3px; letter-spacing: 0.5px; }

/* ── PORTFOLIO GRID ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.port-cell {
  aspect-ratio: 1;
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: opacity 0.15s;
  overflow: hidden;
}
.port-cell img { width: 100%; height: 100%; object-fit: cover; }
.port-cell:hover { opacity: 0.8; }

.ig-sync-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 11px;
  color: var(--muted);
}
.ig-sync-note svg { width: 12px; height: 12px; stroke: var(--gold); }

/* ── NEXT SPOT BOX ── */
.next-spot-box {
  margin: 12px 16px;
  background: rgba(200,169,110,0.06);
  border: 0.5px solid rgba(200,169,110,0.25);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.next-spot-date { font-size: 15px; font-weight: 500; color: var(--gold); margin-bottom: 4px; }
.next-spot-place { font-size: 13px; color: var(--text); }
.next-spot-studio { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.next-spot-note { font-size: 11px; color: var(--gold); margin-top: 8px; }

/* ── NOTIF BADGE ── */
.notif-badge {
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 99px;
  margin-left: auto;
}

/* ── NOTIFICATION ITEM ── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: var(--gray); }
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-dot.read { background: var(--mid); }
.notif-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.notif-text strong { font-weight: 500; color: var(--gold); }
.notif-detail { font-size: 11px; color: var(--gold); margin-top: 3px; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; color: var(--text-dim); margin-bottom: 5px; display: block; letter-spacing: 0.3px; }
.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--mid);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-input::placeholder { color: var(--muted); }
.form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--mid);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A96E' 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;
}
.form-select:focus { outline: none; border-color: var(--gold); }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--gold); }
.range-val { font-size: 13px; font-weight: 500; color: var(--gold); min-width: 56px; text-align: right; }

/* ── BUTTONS ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; color: var(--text); border: 0.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn + .btn { margin-top: 10px; }

/* ── INFO BOX ── */
.info-box {
  margin: 0 16px 14px;
  background: rgba(200,169,110,0.05);
  border: 0.5px solid rgba(200,169,110,0.2);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.info-box.gold { color: var(--gold); }

/* ── MAP ── */
#map-container {
  height: 220px;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}
#mapbox-map { width: 100%; height: 100%; }
.map-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.map-pin {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--text);
  position: relative;
  z-index: 2;
}
.map-pin.user {
  background: #4FC3F7;
  box-shadow: 0 0 0 6px rgba(79,195,247,0.2);
}
.map-pin-label {
  font-size: 9px;
  color: var(--gold);
  white-space: nowrap;
  margin-top: 3px;
  font-weight: 500;
}
.map-pulse {
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(200,169,110,0.2);
  animation: mapPulse 2s infinite;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes mapPulse {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(3); opacity: 0; }
}

/* ── SUCCESS SCREEN ── */
.success-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(200,169,110,0.08);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}
.success-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.success-sub { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 32px; max-width: 280px; }

/* ── DIVIDER ── */
.divider { height: 0.5px; background: var(--border); margin: 14px 0; }
.section-divider { height: 8px; background: var(--black); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}
.empty-state svg { width: 40px; height: 40px; stroke: var(--border); margin-bottom: 12px; }

/* ── LOADING ── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── VERIFIED BADGE ── */
.verified { color: var(--gold); font-size: 12px; margin-left: 4px; }

/* ── PROFILE HEADER ── */
.profile-header {
  padding: 20px 16px 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 0.5px solid var(--border);
}
.profile-info { flex: 1; }
.profile-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.profile-handle { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.ig-connected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gold);
}
.ig-connected svg { width: 12px; height: 12px; }

/* ── TOGGLE ROW ── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
}
.toggle-label { font-size: 13px; color: var(--text); }
.toggle {
  width: 40px; height: 22px;
  background: var(--mid);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.toggle.on { background: var(--gold); }
.toggle::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: var(--text);
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
.toggle.on::after { transform: translateX(18px); }

/* ── PHASE BADGE ── */
.phase-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(200,169,110,0.1);
  color: var(--gold);
  border: 0.5px solid rgba(200,169,110,0.25);
  letter-spacing: 0.5px;
}

/* ── COMING SOON ── */
.coming-soon-overlay {
  position: relative;
}
.coming-soon-overlay::after {
  content: 'Phase 2';
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  border-radius: var(--radius);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.35s ease forwards; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── KONTAKT ITEM ── */
.kontakt-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  padding: 4px 10px;
  border: 0.5px solid rgba(200,169,110,0.3);
  border-radius: 99px;
  background: rgba(200,169,110,0.05);
}
.kontakt-item:hover { background: rgba(200,169,110,0.12); }
.kontakt-item svg { width: 12px; height: 12px; stroke: var(--gold); }
