/* ═══════════════════════════════════════════════
   MIXTE-MEET — CSS Principal
   app.css
═══════════════════════════════════════════════ */

:root {
  --pink:        #E8317A;
  --pink-light:  #FF6FAD;
  --pink-pale:   #FFF0F6;
  --pink-glow:   rgba(232,49,122,0.18);
  --black:       #0A080B;
  --dark:        #140F17;
  --charcoal:    #1E1723;
  --mid:         #2D2435;
  --surface:     #241C2B;
  --border:      rgba(255,255,255,0.08);
  --white:       #FFFFFF;
  --muted:       rgba(255,255,255,0.45);
  --text:        rgba(255,255,255,0.87);
  --gold:        #C9A84C;
  --green:       #22C55E;
  --red:         #EF4444;

  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --radius-xl:   32px;

  --nav-h:       68px;
  --header-h:    60px;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-pink: 0 8px 32px rgba(232,49,122,0.35);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Vue auth : scrollable */
#view-auth {
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Vue app : fixe */
#view-app {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── LOADER ─────────────────────────────────── */
#app-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 9999;
  transition: opacity 0.5s, transform 0.5s;
}
#app-loader.fade-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loader-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
}
.loader-spinner {
  width: 32px; height: 32px;
  border: 2.5px solid rgba(232,49,122,0.2);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── APP STRUCTURE ───────────────────────────── */
#app { height: 100%; }
.view { height: 100%; }
#view-auth { height: auto; min-height: 100%; overflow-y: auto; }
.hidden { display: none !important; }

#view-app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--nav-h);
  animation: pageIn 0.3s var(--ease) both;
}
.page.hidden { display: none; }

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

/* ── BOTTOM NAV ──────────────────────────────── */
.bottom-nav {
  height: var(--nav-h);
  background: rgba(20,15,23,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
  padding: 8px;
  position: relative;
  border-radius: 12px;
}
.nav-btn svg { width: 22px; height: 22px; transition: transform 0.3s var(--ease-spring); }
.nav-btn span { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; }
.nav-btn.active { color: var(--pink); }
.nav-btn.active svg { transform: scale(1.15); }
.nav-btn:active svg { transform: scale(0.9); }

.nav-badge {
  position: absolute;
  top: 6px; right: calc(50% - 18px);
  background: var(--pink);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── PAGE HEADER ─────────────────────────────── */
.page-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: rgba(20,15,23,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 5;
}
.page-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  flex: 1;
}
.page-header-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--white), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.header-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.1); }

/* ── TOAST ───────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, 90vw);
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.4s var(--ease-spring) both;
  pointer-events: auto;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast.info    { border-color: rgba(232,49,122,0.3); }
@keyframes toastIn { from { opacity:0; transform:translateY(-10px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { to { opacity:0; transform:translateY(-10px) scale(0.95); } }

/* ── MODAL ───────────────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.25s;
}
#modal-box {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.35s var(--ease);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
@keyframes fadeIn  { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(100%); } }

/* ── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ── MEDIA QUERIES ───────────────────────────── */
@media (min-width: 600px) {
  #app {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  body { background: #050305; }
}

/* ── CONTINENT FILTER BUTTONS ─────────────────── */
.continent-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: none !important;
  outline: none !important;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}
.continent-btn:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.continent-btn.active {
  background: linear-gradient(135deg, var(--pink), #C41F65);
  color: white;
  font-weight: 600;
}
