/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  transition: background 0.3s;
}
.nav.scrolled {
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #fff;
  text-transform: uppercase;
  flex: 1;
}
.nav-auth, .nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-btn {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-btn:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.nav-btn-primary { background: #fff; color: #000; border-color: #fff; }
.nav-btn-primary:hover { background: #e5e5e5; border-color: #e5e5e5; color: #000; }
.nav-btn-faves { color: #f5c518; border-color: rgba(245,197,24,0.35); }
.nav-btn-faves:hover { border-color: #f5c518; }
.nav-username {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.hidden { display: none !important; }

/* ── OVERLAY ── */
.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ── SLIDE-IN PANEL ── */
.side-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 150;
  width: 380px;
  background: #111;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 72px 36px 36px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
.side-panel.open { transform: translateX(0); }

.panel-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.panel-close:hover { color: #fff; }

/* ── AUTH PANELS ── */
.auth-panel { width: 100%; }

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  font-family: 'DM Sans', sans-serif;
}
.auth-error {
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.35);
  color: #fca5a5;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  padding: 10px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.auth-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  padding: 10px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}

/* ── FIELDS ── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}
.field input::placeholder { color: rgba(255,255,255,0.18); }

/* ── SUBMIT ── */
.auth-submit {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  padding: 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 6px;
  margin-bottom: 22px;
  transition: background 0.2s;
}
.auth-submit:hover { background: #e5e5e5; }
.auth-submit:disabled { background: rgba(255,255,255,0.15); color: rgba(0,0,0,0.3); cursor: not-allowed; }

.auth-switch {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.auth-switch a { color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── FAVOURITES ── */
.faves-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fave-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 12px 14px;
  transition: background 0.2s;
}
.fave-item:hover { background: rgba(255,255,255,0.08); }
.fave-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fave-info { flex: 1; min-width: 0; }
.fave-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fave-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: 'DM Sans', sans-serif;
  margin-top: 2px;
}
.fave-visit {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.fave-visit:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.fave-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s;
  line-height: 1;
}
.fave-remove:hover { color: #e55; }

.faves-empty {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

/* ── FAVOURITE BUTTON ON SLIDES ── */
.btn-fave {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 13px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.btn-fave:hover { color: #f5c518; border-color: rgba(245,197,24,0.5); background: rgba(245,197,24,0.08); }
.btn-fave.active { color: #f5c518; border-color: rgba(245,197,24,0.6); background: rgba(245,197,24,0.1); }
.btn-fave .star { font-size: 15px; }
