/* =========================================================
   Petal — Brand Design System
   event-planner-ai · Bridal & Wedding Edition
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --ivory:           #FDF8F4;
  --white:           #FFFFFF;
  --blush:           #F9E4E6;
  --blush-deep:      #F2CACE;
  --rose:            #D4849A;
  --dusty-rose:      #C4788A;
  --deep-rose:       #9B4F6A;
  --champagne:       #C8A87A;
  --champagne-light: #F5ECD7;
  --charcoal:        #3D3535;
  --warm-gray:       #6B5E5E;
  --light-gray:      #E8E0E0;
  --muted:           #A89898;
  --success:         #7CB392;
  --success-light:   #E8F5EC;
  --warning:         #D4A96A;
  --warning-light:   #FBF0DC;
  --danger:          #C45A5A;
  --danger-light:    #FAEAEA;
  --pro-gold:        #C8A87A;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(61, 53, 53, 0.08);
  --shadow-sm:  0 2px 8px rgba(61, 53, 53, 0.10);
  --shadow-md:  0 4px 20px rgba(61, 53, 53, 0.12);
  --shadow-lg:  0 8px 40px rgba(61, 53, 53, 0.15);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--warm-gray); }
.lead { font-size: 1.15rem; color: var(--warm-gray); }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-muted { color: var(--muted); }
.font-heading { font-family: var(--font-heading); }
.italic { font-style: italic; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}
.nav-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-rose);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .petal { font-size: 1.2rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--dusty-rose); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Sidebar nav (dashboard) ─────────────────────────────── */
.app-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--light-gray);
  padding: 24px 0;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.02em;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover   { color: var(--dusty-rose); background: var(--blush); }
.sidebar-nav a.active  {
  color: var(--dusty-rose);
  background: var(--blush);
  border-left-color: var(--dusty-rose);
}
.sidebar-icon { font-size: 1.1rem; width: 22px; }
.main-content { flex: 1; padding: 32px; background: var(--ivory); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--dusty-rose);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(196, 120, 138, 0.35);
}
.btn-primary:hover { background: var(--deep-rose); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(196, 120, 138, 0.45); }
.btn-gold {
  background: var(--champagne);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(200, 168, 122, 0.35);
}
.btn-gold:hover { background: #b8956a; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--dusty-rose);
  border: 1.5px solid var(--dusty-rose);
}
.btn-outline:hover { background: var(--blush); }
.btn-ghost {
  background: transparent;
  color: var(--warm-gray);
  border: 1.5px solid var(--light-gray);
}
.btn-ghost:hover { background: var(--blush); color: var(--dusty-rose); border-color: var(--rose); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: all 0.2s; }

/* ── Status badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-accepted   { background: var(--success-light); color: #3A7D52; }
.badge-pending    { background: var(--warning-light);  color: #8A6020; }
.badge-declined   { background: var(--danger-light);   color: var(--danger); }
.badge-draft      { background: var(--champagne-light); color: #7A5A2A; }
.badge-published  { background: var(--blush); color: var(--deep-rose); }
.badge-pro        {
  background: linear-gradient(135deg, var(--champagne) 0%, #b8956a 100%);
  color: var(--white);
}

/* ── AI suggestion panel ─────────────────────────────────── */
.ai-panel {
  border-left: 3px solid var(--rose);
  padding: 16px 20px;
  background: linear-gradient(to right, var(--blush), var(--white));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
}
.ai-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dusty-rose);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── Form elements ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(212, 132, 154, 0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* ── Stat cards ──────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* ── Tables ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
  background: var(--ivory);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.875rem;
  color: var(--charcoal);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--blush); }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

/* ── Wizard steps ────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}
.wizard-step {
  display: flex;
  align-items: center;
  flex: 1;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--light-gray);
  background: var(--white);
  color: var(--muted);
  transition: all 0.2s;
}
.step-circle.active   { border-color: var(--dusty-rose); background: var(--dusty-rose); color: var(--white); }
.step-circle.complete { border-color: var(--success); background: var(--success); color: var(--white); }
.step-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 8px;
}
.step-label.active { color: var(--dusty-rose); }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--light-gray);
  margin: 0 8px;
}
.step-connector.complete { background: var(--success); }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 2px solid var(--light-gray); gap: 0; margin-bottom: 24px; }
.tab {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab:hover { color: var(--dusty-rose); }
.tab.active { color: var(--dusty-rose); border-bottom-color: var(--dusty-rose); }

/* ── Progress bar ────────────────────────────────────────── */
.progress-bar { height: 6px; background: var(--light-gray); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--dusty-rose)); border-radius: 999px; }

/* ── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--light-gray); margin: 24px 0; }
.divider-rose { background: var(--blush-deep); }

/* ── Decorative elements ─────────────────────────────────── */
.petal-divider {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--rose);
  letter-spacing: 0.3em;
  margin: 8px 0;
}
.floral-accent {
  color: var(--rose);
  opacity: 0.4;
  font-size: 1.5rem;
}

/* ── Hero gradient ───────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #FDF0F2 0%, #FDF8F4 40%, #F5ECD7 100%);
}
.rose-gradient {
  background: linear-gradient(135deg, var(--dusty-rose) 0%, var(--deep-rose) 100%);
}
.champagne-gradient {
  background: linear-gradient(135deg, var(--champagne) 0%, #b8956a 100%);
}

/* ── Upgrade prompt ──────────────────────────────────────── */
.upgrade-prompt {
  background: linear-gradient(135deg, var(--champagne-light) 0%, #FBF0DC 100%);
  border: 1px solid var(--champagne);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-family: var(--font-heading); color: var(--charcoal); margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 320px; margin: 0 auto 24px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px 32px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
}
.footer a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer a:hover { color: var(--rose); }
.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-bottom {
  max-width: 1160px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { display: none; }
  .main-content { padding: 20px 16px; }
}
