/* =========================================================
   Sync Portal Overrides + Drawer polish
   File: /sync/assets/css/portal.css
   ========================================================= */

:root{
  --sync-accent: #6bb7ff;
  --sync-accent-2: #8aa4ff;
  --sync-accent-soft: rgba(107,183,255,.12);
}

/* Background glow */
body{
  background:
    radial-gradient(1200px 800px at 15% 0%, rgba(107,183,255,.12), transparent 60%),
    radial-gradient(1000px 700px at 85% 10%, rgba(138,164,255,.08), transparent 55%),
    var(--bg);
}

/* Header */
body.sync-portal .nav{
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 20, .74);
  border-bottom: 1px solid rgba(107,183,255,.18);
}
body.sync-portal .brand-badge{
  background: linear-gradient(135deg, var(--sync-accent), var(--sync-accent-2));
  border: 1px solid rgba(107,183,255,.25);
}

/* Nav hover/active */
body.sync-portal .nav-links a.active,
body.sync-portal .nav-links a:hover{
  border-color: rgba(107,183,255,.35);
  background: rgba(107,183,255,.10);
  color: var(--text);
}

/* Primary buttons in sync */
body.sync-portal .btn.primary{
  background: linear-gradient(135deg, var(--sync-accent), var(--sync-accent-2));
  color: #0b1020;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(107,183,255,.30);
}
body.sync-portal .btn.primary:hover{ filter: brightness(1.06); }

/* Tags/badges */
body.sync-portal .tag,
body.sync-portal .badge{
  border-color: rgba(107,183,255,.35);
  background: rgba(107,183,255,.10);
}

/* Main Site button inside sync */
body.sync-portal .nav-links a.main-site-btn{
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
  color: var(--text) !important;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
body.sync-portal .nav-links a.main-site-btn:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* =========================================================
   SHORTLIST DRAWER — clean + professional
   ========================================================= */

/* Backdrop */
.drawer-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 70;
}
.drawer-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

/* Drawer shell */
.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);

  transform: translateX(110%);
  transition: transform .22s ease;
  z-index: 80;

  background: linear-gradient(180deg, rgba(17,19,26,.96), rgba(17,19,26,.86));
  border-left: 1px solid rgba(35,40,68,.85);
  box-shadow: -18px 0 40px rgba(0,0,0,.42);

  display: flex;
  flex-direction: column;
}
.drawer.open{ transform: translateX(0); }

/* Header — FIX cramped */
.drawer-header{
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(35,40,68,.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Put SHORTLIST + saved on one clean line */
.drawer-header > div{
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-header .badge{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 12px;
}
#drawerSub{
  font-size: 12px;
  opacity: .85;
  margin: 0;
}

/* Close button looks cleaner */
#closeShortlist{
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 800;
}

/* Body */
.drawer-body{
  padding: 14px 16px 18px;
  overflow: auto;
  flex: 1 1 auto;
}

/* Drawer items — tighter + not “giant photo” */
.short-item{
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(35,40,68,.75);
  background: rgba(21,24,38,.55);
  margin-bottom: 12px;
}
.short-item img{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(35,40,68,.65);
  flex: 0 0 auto;
}
.short-item > div{ min-width: 0; }
.short-item .mono{ font-size: 12px; line-height: 1.25; opacity: .85; }

.short-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Footer — FIX cramped + layout */
.drawer-footer{
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(35,40,68,.65);
  background: rgba(11,12,16,.35);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Email spans full width */
#drawerEmail{
  grid-column: 1 / -1;
}

/* Make footer buttons consistent */
.drawer-footer .btn{
  min-height: 40px;
  border-radius: 14px;
  font-weight: 800;
}
