/* ─────────────────────────────────────────────────────────────────
   NeedSugarDaddy — Main Stylesheet
   Theme: Luxury Dark Purple  (#6d28d9 deep purple + #a78bfa violet)
   ───────────────────────────────────────────────────────────────── */

:root {
  --primary:        #6d28d9;
  --primary-dark:   #4c1d95;
  --secondary:      #a78bfa;
  --secondary-dark: #7c3aed;
  --accent:         #d4a017;
  --grad:           linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  --grad-soft:      linear-gradient(135deg, rgba(76,29,149,.08) 0%, rgba(124,58,237,.08) 100%);
  --text-primary:   #1a1a2e;
  --text-secondary: #64748b;
  --bg:             #faf5ff;
  --bg2:            #fff;
  --border:         #ede9fe;
  --shadow:         0 2px 16px rgba(109,40,217,.10);
  --radius:         14px;
  --radius-sm:      8px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ─── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .15s, color .15s;
  position: relative;
  font-size: 1.05rem;
}
.nav-icon-btn:hover { background: var(--grad-soft); color: var(--primary); }

.notification-count {
  position: absolute;
  top: -2px; right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  border-radius: 9999px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 1.3;
}

.nav-profile-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* ─── CATEGORY NAV PILLS ─────────────────────────────────────────── */
.category-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 8px 16px;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-inner { display: inline-flex; gap: 8px; }

.cat-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .82rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1.5px solid var(--border);
  white-space: nowrap;
  transition: all .15s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* ─── PAGE WRAPPER ───────────────────────────────────────────────── */
.page-content-wrapper {
  min-height: calc(100vh - 120px);
}

.container-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ─── HERO / GRADIENT HEADER ─────────────────────────────────────── */
.hero-grad {
  background: var(--grad);
  color: #fff;
  padding: 48px 24px 36px;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero-grad h1 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.hero-grad p  { font-size: 1.05rem; opacity: .9; margin: 0; }

/* ─── CARDS ─────────────────────────────────────────────────────── */
.card-wg {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card-wg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(109,40,217,.14);
}

.card-question { border-left: 4px solid var(--primary); }
.card-hangout  { border-left: 4px solid var(--secondary); }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn-primary-wg {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  display: inline-block;
  text-align: center;
}
.btn-primary-wg:hover { opacity: .9; color: #fff; transform: translateY(-1px); }

.btn-secondary-wg {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 24px;
  padding: 9px 22px;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: all .15s;
  display: inline-block;
  text-align: center;
}
.btn-secondary-wg:hover { background: var(--grad); color: #fff; border-color: transparent; }

.btn-credits {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-credits:hover { opacity: .85; }

/* ─── FORMS ──────────────────────────────────────────────────────── */
.form-wg .form-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.form-wg .form-control,
.form-wg .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  padding: 10px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-wg .form-control:focus,
.form-wg .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109,40,217,.12);
  outline: none;
}

/* ─── GENDER BADGES ──────────────────────────────────────────────── */
.badge-female {
  background: linear-gradient(135deg,#6d28d9,#a78bfa);
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .76rem;
  font-weight: 800;
}
.badge-male {
  background: linear-gradient(135deg,#3b82f6,#7c3aed);
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .76rem;
  font-weight: 800;
}

/* ─── CREDITS BADGE ──────────────────────────────────────────────── */
.credits-badge {
  background: linear-gradient(135deg,#f59e0b,#fbbf24);
  color: #fff;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: .82rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── QUESTION/ANSWER CARDS ──────────────────────────────────────── */
.q-title { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.q-meta  { font-size: .8rem; color: var(--text-secondary); margin-top: 4px; }
.q-reward {
  background: rgba(245,158,11,.12);
  color: #b45309;
  border-radius: 12px;
  padding: 3px 10px;
  font-weight: 800;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hr-badge {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 3px 10px;
  font-weight: 800;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.answer-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--grad-soft);
  margin-bottom: 12px;
}
.answer-locked {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.unlock-overlay {
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  background: rgba(109,40,217,.04);
}

/* ─── HANGOUT CARD ───────────────────────────────────────────────── */
.hangout-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.hangout-card:hover { transform: translateY(-2px); }
.hangout-title { font-size: 1.05rem; font-weight: 800; }
.hangout-meta  { font-size: .8rem; color: var(--text-secondary); margin-top: 4px; }

.occasion-pill {
  background: rgba(124,58,237,.1);
  color: var(--secondary);
  border-radius: 12px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: .78rem;
}

/* ─── PROFILE PAGE ───────────────────────────────────────────────── */
.profile-cover {
  height: 160px;
  background: var(--grad);
  border-radius: var(--radius) var(--radius) 0 0;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  margin-top: -48px;
  margin-left: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.profile-username {
  font-size: 1.4rem;
  font-weight: 900;
  margin-top: 8px;
}

/* ─── SECTION HEADERS ────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--grad);
  border-radius: 2px;
}

/* ─── ALERTS / MESSAGES ──────────────────────────────────────────── */
.alert-wg-success {
  background: rgba(16,185,129,.1);
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.alert-wg-error {
  background: rgba(109,40,217,.07);
  border: 1.5px solid #ddd6fe;
  color: #4c1d95;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1.5px solid var(--border);
  padding: 16px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
}
.site-footer a { color: var(--primary); font-weight: 700; }

/* ─── FIXED MOBILE NAV ───────────────────────────────────────────── */
.fixed-footer-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-top: 1.5px solid var(--border);
  display: flex;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(109,40,217,.1);
}
.footer-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 10px;
  color: var(--text-secondary);
  font-size: .65rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s;
  gap: 3px;
}
.footer-nav-item i { font-size: 1.2rem; }
.footer-nav-item:hover, .footer-nav-item.active { color: var(--primary); }
.footer-nav-primary .footer-center-btn {
  width: 46px; height: 46px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 2px;
  box-shadow: 0 4px 14px rgba(109,40,217,.35);
}

/* ─── AUTH PAGES ─────────────────────────────────────────────────── */
.auth-card {
  max-width: 460px;
  margin: 40px auto;
  background: var(--bg2);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(109,40,217,.12);
  overflow: hidden;
}
.auth-header {
  background: var(--grad);
  padding: 28px 24px 20px;
  text-align: center;
  color: #fff;
}
.auth-header h2 { font-weight: 900; margin: 0; font-size: 1.6rem; }
.auth-body { padding: 28px 28px 24px; }

/* ─── GENDER SELECTOR ────────────────────────────────────────────── */
.gender-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.gender-option { display: none; }
.gender-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  font-size: .95rem;
  color: var(--text-secondary);
  transition: all .15s;
  gap: 8px;
}
.gender-label i { font-size: 1.6rem; }
.gender-option:checked + .gender-label {
  border-color: var(--primary);
  background: var(--grad-soft);
  color: var(--primary);
}

/* ─── DIVIDERS ───────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 700;
  margin: 16px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── CREDITS PAGE ───────────────────────────────────────────────── */
.credit-pack {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--bg2);
}
.credit-pack:hover, .credit-pack.selected {
  border-color: var(--primary);
  background: var(--grad-soft);
}
.credit-pack .credit-amount {
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.credit-pack .credit-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-grad h1 { font-size: 1.5rem; }
  .auth-card { margin: 16px; }
  .auth-body { padding: 20px 16px; }
  .container-main { padding: 16px 12px; }
}

/* ─── SEARCH BAR ─────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
}
.search-wrap input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  background: var(--bg);
  transition: border-color .15s;
}
.search-wrap input:focus { border-color: var(--primary); outline: none; }
.search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: .9rem;
}

/* ─── EMPTY STATE ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}
.empty-state i { font-size: 3rem; color: var(--border); margin-bottom: 12px; display: block; }
.empty-state h3 { font-weight: 800; color: var(--text-primary); }

/* ─── PAGINATION ─────────────────────────────────────────────────── */
.pagination-wg { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.page-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-primary);
  background: var(--bg2);
  text-decoration: none;
  transition: all .15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
