/* ==========================================================================
   LUMINA - Premium Direct-to-Consumer Brand Design System
   Clean, Original, Trustworthy & Uncluttered Architecture
   ========================================================================== */

@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 {
  /* Default Theme: KartNest Luxury Clean (Pristine Light) */
  --bg-page: #fbfbfc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f4f6f9;
  --bg-header: rgba(255, 255, 255, 0.88);
  --bg-card: #ffffff;
  
  --border-subtle: #eaedf2;
  --border-medium: #d1d9e2;
  --border-focus: #2563eb;

  --text-main: #090d16;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --accent-primary: #090d16;
  --accent-primary-hover: #1e293b;
  --accent-primary-text: #ffffff;
  --accent-brand: #2563eb;
  --accent-brand-hover: #1d4ed8;

  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-warning: #ea580c;
  --color-danger: #dc2626;
  --color-star: #f59e0b;

  --shadow-xs: 0 1px 2px rgba(9, 13, 22, 0.04);
  --shadow-sm: 0 2px 8px rgba(9, 13, 22, 0.04), 0 1px 2px rgba(9, 13, 22, 0.02);
  --shadow-md: 0 8px 24px -4px rgba(9, 13, 22, 0.07), 0 2px 6px -1px rgba(9, 13, 22, 0.03);
  --shadow-lg: 0 18px 44px -8px rgba(9, 13, 22, 0.12), 0 4px 14px -2px rgba(9, 13, 22, 0.05);
  --shadow-drawer: -8px 0 40px rgba(9, 13, 22, 0.18);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme: Warm Minimalist (Sand / Organic Linen) */
html[data-theme="theme-warm"] {
  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f3efe8;
  --bg-header: rgba(250, 248, 245, 0.95);
  --bg-card: #ffffff;

  --border-subtle: #e7e2d7;
  --border-medium: #d4ccbd;
  --border-focus: #b45309;

  --text-main: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;

  --accent-primary: #1c1917;
  --accent-primary-hover: #292524;
  --accent-primary-text: #ffffff;
  --accent-brand: #b45309;
  --accent-brand-hover: #92400e;

  --color-success: #15803d;
  --color-success-bg: #f0fdf4;
  --color-star: #d97706;
}

/* Theme: Royal Forest (Deep Emerald) */
html[data-theme="theme-emerald"] {
  --bg-page: #061712;
  --bg-surface: #0c241c;
  --bg-surface-subtle: #13352b;
  --bg-header: rgba(6, 23, 18, 0.95);
  --bg-card: #0c241c;

  --border-subtle: #174235;
  --border-medium: #225c4a;
  --border-focus: #10b981;

  --text-main: #f0fdf4;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;

  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-primary-text: #061712;
  --accent-brand: #10b981;
  --accent-brand-hover: #059669;

  --color-success: #34d399;
  --color-success-bg: rgba(52, 211, 153, 0.15);
  --color-star: #f59e0b;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
  overscroll-behavior-y: auto;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Clean Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--accent-primary-text);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--text-main);
}

.btn-brand {
  background: var(--accent-brand);
  color: #ffffff;
}

.btn-brand:hover {
  background: var(--accent-brand-hover);
  transform: translateY(-1px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-icon:hover {
  background: var(--border-subtle);
  transform: scale(1.05);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* ==========================================================================
   Clean Badges
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}

.badge-official {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.badge-tag {
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-highlight {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-brand);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 12px 18px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-brand);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .toast-container {
    top: 16px;
    bottom: auto;
    left: 14px;
    right: 14px;
    align-items: center;
  }
  .toast {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }
}

.toast-icon {
  display: flex;
  color: var(--accent-brand);
}

.toast-msg {
  flex: 1;
  font-size: 0.88rem;
}

.toast-msg strong {
  font-weight: 700;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.animate-slide-in {
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-out {
  animation: toastOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.pulse-bounce {
  animation: pulseBounce 0.35s ease-out;
}

@keyframes pulseBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
