/* ============================================================
   shared.css — tokens + components used across all pages
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Tokens ── */
:root {
  --bg:         #080808;
  --surface:    #111111;
  --surface2:   #181818;
  --border:     #1f1f1f;
  --text:       #f0f0f0;
  --muted:      #666666;
  --accent:     #10a37f;
  --accent-dim: rgba(16,163,127,.12);
  --accent-glow:rgba(16,163,127,.25);
  --danger:     #e53e3e;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill:50px;

  --ease: cubic-bezier(.16,1,.3,1);
  --t:    .22s;
}

/* Light mode */
body.light {
  --bg:         #f7f7f5;
  --surface:    #ffffff;
  --surface2:   #f0f0ee;
  --border:     #e5e5e5;
  --text:       #111111;
  --muted:      #888888;
  --accent-dim: rgba(16,163,127,.1);
}

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

html { scroll-behavior:smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--t), color var(--t);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8,8,8,.85);
  backdrop-filter: blur(16px);
  z-index: 100;
  transition: background var(--t);
}

body.light .nav { background: rgba(247,247,245,.9); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface2);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 18px !important;
}

.nav-cta:hover { opacity: .88; }

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
  margin-left: 4px;
}

.theme-btn:hover { border-color: var(--accent); color: var(--text); }

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--t), transform var(--t);
}

.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--accent); color: #fff; }
.btn-ghost    { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-outline  { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.footer p    { color: var(--muted); font-size: 13px; }

/* ── UTILITIES ── */
.container { width: 88%; max-width: 1160px; margin: 0 auto; }
.section   { padding: 90px 0; }

/* fade-up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .7s var(--ease) both; }
.fade-up-2 { animation: fadeUp .7s var(--ease) .12s both; }
.fade-up-3 { animation: fadeUp .7s var(--ease) .24s both; }
.fade-up-4 { animation: fadeUp .7s var(--ease) .36s both; }

/* ============================================================
   ADD THIS TO THE BOTTOM OF shared.css
   Profile navbar dropdown styles
   ============================================================ */

/* ── Profile wrap ── */
.profile-wrap {
  position: relative;
}

/* ── Profile button (always visible in navbar) ── */
.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--t), background var(--t);
}

.profile-btn:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chevron {
  color: var(--muted);
  font-size: 11px;
  transition: transform var(--t);
}

/* rotate chevron when open */
.profile-dropdown.open ~ .profile-btn .profile-chevron,
.profile-btn:has(+ .profile-dropdown.open) .profile-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  overflow: hidden;
  z-index: 200;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t), transform var(--t);
}

/* show on hover (desktop) */
.profile-wrap:hover .profile-dropdown,
.profile-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ── Dropdown header (user info) ── */
.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.dropdown-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-email {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Divider ── */
.profile-dropdown-divider {
  height: 1px;
  background: var(--border);
}

/* ── Dropdown items ── */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--t), color var(--t);
}

.dropdown-item:hover {
  background: var(--surface2);
}

.dropdown-signout {
  color: #fc8181;
}

.dropdown-signout:hover {
  background: rgba(229,62,62,.08);
  color: #e53e3e;
}