/* Occasion Planner Hub - Master Design System & Component Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --secondary: #0f172a;
  --accent: #f43f5e;
  --success: #10b981;
  --warning: #f59e0b;
  --surface: #ffffff;
  --background: #f8fafc;
  --border: #e2e8f0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Hero Background Gradients */
.hero-gradient {
  background: radial-gradient(1200px circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(248, 250, 252, 0) 100%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* Interactive Checklist Styling */
.checklist-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-item:hover {
  transform: translateY(-1px);
}

.checklist-item.is-completed {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  opacity: 0.75;
}

.checklist-item.is-completed .task-title {
  text-decoration: line-through;
  color: #64748b;
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.375rem;
  outline: none;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.15s ease-in-out;
  background-color: #ffffff;
}

.custom-checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox:checked::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  transform: scale(1);
  background-color: #ffffff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Progress bar smoothly animated */
.smooth-progress {
  transition: width 0.4s ease-out;
}

/* AdSense Container Safety (Master Req 44, 45, 83, 84) */
.ad-slot-wrapper {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  clear: both;
}

.ad-slot-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  min-height: 90px;
  position: relative;
  transition: border-color 0.2s;
}

/* Custom Tool Cards */
.tool-card {
  transition: all 0.25s ease;
  border: 1px solid #e2e8f0;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* Invitation Preview Canvas */
.invitation-card-preview {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  position: relative;
}

.invitation-border-ornate {
  border: 2px solid #b45309;
  outline: 1px solid #fef3c7;
  outline-offset: 4px;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

/* Cookie Banner */
.cookie-banner {
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

/* Print Stylesheet (Master Req 25, 26, 45) */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  header, footer, nav, .ad-slot-wrapper, .cookie-banner, .no-print, button:not(.allow-print), .breadcrumb-nav {
    display: none !important;
  }

  .printable-document {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }

  .print-header {
    display: block !important;
  }

  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  a {
    text-decoration: none !important;
    color: #000000 !important;
  }
}
