/* ── Wink & Nod Shared Styles ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --rose: #E8364F;
  --rose-soft: #FF6B8A;
  --cream: #FFF8F0;
  --dark: #1A1118;
  --muted: #6B5E66;
  --warm-gray: #2D2329;
  --blush: #FFE8EC;
  --gold: #D4A853;
  --dark-card: rgba(45, 35, 41, 0.5);
  --border-subtle: rgba(232, 54, 79, 0.12);
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Nav ────────────────────────────────────────────────────────── */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(26, 17, 24, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.app-nav .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.app-nav .logo span { color: var(--rose); }

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

.nav-user {
  font-size: 0.8rem;
  color: var(--rose-soft);
  font-weight: 500;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--rose);
  color: white;
}

.btn-primary:hover {
  background: var(--rose-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(232, 54, 79, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
}

.btn-ghost:hover { color: var(--cream); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--dark-card);
  backdrop-filter: blur(10px);
  position: relative;
}

.card-glow {
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  opacity: 0.6;
}

/* ── Tags / Chips ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(232, 54, 79, 0.1);
  color: var(--rose-soft);
  border: 1px solid rgba(232, 54, 79, 0.15);
}

.tag-gold {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  border-color: rgba(212, 168, 83, 0.15);
}

/* ── Score Badge ────────────────────────────────────────────────── */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.score-high {
  background: rgba(232, 54, 79, 0.15);
  color: var(--rose);
  border: 2px solid var(--rose);
}

.score-medium {
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold);
  border: 2px solid rgba(212, 168, 83, 0.4);
}

.score-low {
  background: rgba(107, 94, 102, 0.15);
  color: var(--muted);
  border: 2px solid rgba(107, 94, 102, 0.3);
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(107, 94, 102, 0.25);
  background: rgba(45, 35, 41, 0.6);
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--rose);
}

.form-input::placeholder {
  color: rgba(107, 94, 102, 0.6);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5E66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Utilities ──────────────────────────────────────────────────── */
.text-muted { color: var(--muted); }
.text-rose { color: var(--rose); }
.text-gold { color: var(--gold); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.font-serif { font-family: 'DM Serif Display', serif; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 88px 24px 40px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
}

/* ── Loading ────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(232, 54, 79, 0.2);
  border-radius: 50%;
  border-top-color: var(--rose);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ── Fade In ────────────────────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}

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

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-nav { padding: 12px 16px; }
  .page-container { padding: 80px 16px 32px; }
  .page-header h1 { font-size: 1.6rem; }
}
