/* ==========================================================================
   TURIA YOGA — NORTHERN HARMONY DESIGN SYSTEM (wellness-theme.css)
   Warm Cream • Soft Linen • Deep Burgundy (#7A1525) • Cognac Amber (#9E5B05) • Deep Espresso
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* 1. Core Color Tokens (Turia Yoga Northern Harmony Theme) */
  --sw-bg-app: #FDFAF7;           /* Warm White / Cream Canvas */
  --sw-bg-workspace: #FDFAF7;     /* Warm Cream Canvas */
  --sw-surface-card: #FFFFFF;     /* Pure Card White */
  --sw-surface-sidebar: #FAF5EE;  /* Delicate Warm Linen */
  --sw-surface-subtle: #F4EDE3;   /* Soft Linen */
  --sw-nav-active-bg: #F4EDE3;    /* Active Pill Bg */
  --sw-accent-soft-bg: rgba(122, 21, 37, 0.06); /* Subtle Burgundy Tint */

  /* Typography Colors */
  --sw-text-primary: #1C1410;     /* Deep Espresso Typography */
  --sw-text-secondary: #4A3C30;   /* Warm Mocha Gray Body Copy */
  --sw-text-muted: #7A6A5A;       /* Delicate Taupe Gray */

  /* Borders & Dividers */
  --sw-border: rgba(100, 80, 60, 0.16); /* Hairline Sand Border */
  --sw-border-hover: #7A1525;     /* Turia Burgundy */
  --sw-border-accent: #7A1525;    /* Deep Burgundy */

  /* Semantic & Accent Colors */
  --sw-accent: #7A1525;           /* Primary Turia Burgundy */
  --sw-accent-hover: #5C0F1B;     /* Deep Burgundy Hover */
  --sw-accent-light: rgba(122, 21, 37, 0.08); /* Light Burgundy Background */
  --sw-gold: #9E5B05;             /* Cognac Amber (WCAG AA Compliant) */
  --sw-bronze: #7A1525;           /* Burgundy Accent */
  --sw-success: #12805C;          /* Forest Mint Success */
  --sw-success-bg: #EAF6F0;       /* Soft Success Pill */
  --sw-warning: #9E5B05;          /* Warm Amber Alert */
  --sw-warning-bg: #FEF6EA;
  --sw-danger: #D95454;
  --sw-danger-bg: #FDECEC;

  /* Typography Families */
  --sw-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sw-font-ui: 'Montserrat', sans-serif;
  --sw-font-serif: 'Cormorant Garamond', Georgia, serif;

  /* 2. Radii & Geometry */
  --sw-radius-xs: 4px;
  --sw-radius-sm: 8px;
  --sw-radius-md: 12px;
  --sw-radius-lg: 16px;
  --sw-radius-xl: 20px;
  --sw-radius-pill: 9999px;

  /* 3. Luxury Elevation Shadows */
  --sw-shadow-card:
    0 15px 40px -10px rgba(35, 28, 24, 0.08),
    0 1px 2px rgba(35, 28, 24, 0.04);

  --sw-shadow-soft-tactile:
    0 5px 15px rgba(35, 28, 24, 0.05),
    -2px -2px 8px rgba(255, 255, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  --sw-shadow-hover:
    0 14px 32px rgba(122, 21, 37, 0.12),
    0 2px 6px rgba(35, 28, 24, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);

  --sw-shadow-pressed:
    inset 0 2px 5px rgba(35, 28, 24, 0.08),
    inset 0 1px 2px rgba(35, 28, 24, 0.05);

  --sw-shadow-btn-primary:
    0 10px 25px rgba(122, 21, 37, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  --sw-shadow-modal:
    0 20px 50px rgba(28, 20, 16, 0.22),
    0 4px 12px rgba(28, 20, 16, 0.10);

  --sw-transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Body Styling */
body {
  margin: 0;
  padding: 0;
  font-family: var(--sw-font-sans);
  background-color: var(--sw-bg-app);
  color: var(--sw-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: var(--sw-font-serif);
}

.font-ui {
  font-family: var(--sw-font-ui);
}

/* Mobile Viewport Container */
.sw-mobile-viewport {
  min-height: 100vh;
  background-color: var(--sw-bg-app);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sw-mobile-container {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background-color: var(--sw-bg-workspace);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 45px rgba(35, 28, 24, 0.08);
}

@media (min-width: 500px) {
  .sw-mobile-viewport {
    padding: 1.5rem 1rem;
  }
  .sw-mobile-container {
    min-height: calc(100vh - 3rem);
    border-radius: 28px;
    border: 1px solid var(--sw-border);
    overflow: hidden;
  }
}

/* Standard White Card */
.sw-card {
  background-color: var(--sw-surface-card);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
  box-shadow: var(--sw-shadow-card);
  transition: border-color var(--sw-transition), box-shadow var(--sw-transition), transform var(--sw-transition);
}

.sw-card-tactile {
  background-color: var(--sw-surface-card);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
  box-shadow: var(--sw-shadow-soft-tactile);
  transition: border-color var(--sw-transition), box-shadow var(--sw-transition), transform var(--sw-transition);
  cursor: pointer;
}

.sw-card-tactile:hover {
  border-color: var(--sw-border-hover);
  box-shadow: var(--sw-shadow-hover);
  transform: translateY(-1px);
}

.sw-card-tactile:active {
  transform: translateY(0);
  box-shadow: var(--sw-shadow-pressed);
}

.sw-card-tactile.sw-selected {
  background-color: var(--sw-accent-soft-bg);
  border-color: var(--sw-border-accent);
}

/* Soft Linen/Amber Subscription Panel */
.sw-panel-mint {
  background-color: #F8F3EC;
  border: 1px solid rgba(122, 21, 37, 0.15);
  border-radius: var(--sw-radius-lg);
  box-shadow: 0 3px 12px rgba(122, 21, 37, 0.04);
}

/* Primary Burgundy CTA Button */
.sw-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7A1525 0%, #9E1F35 100%);
  color: #FFFFFF !important;
  font-family: var(--sw-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--sw-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--sw-shadow-btn-primary);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--sw-transition);
}

.sw-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #9E1F35 0%, #5C0F1B 100%);
  box-shadow: 0 12px 28px rgba(122, 21, 37, 0.45);
  transform: translateY(-1px);
}

.sw-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sw-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Secondary Button */
.sw-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  color: var(--sw-text-primary);
  font-family: var(--sw-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--sw-radius-pill);
  border: 1px solid var(--sw-border);
  box-shadow: var(--sw-shadow-soft-tactile);
  cursor: pointer;
  transition: all var(--sw-transition);
}

.sw-btn-secondary:hover:not(:disabled) {
  background-color: var(--sw-surface-subtle);
  border-color: var(--sw-accent);
  color: var(--sw-accent);
}

.sw-btn-secondary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--sw-shadow-pressed);
}

/* ==========================================================================
   MONTH CALENDAR CELLS (sw-cal-cell)
   ========================================================================== */
.sw-cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: var(--sw-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sw-text-primary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--sw-transition);
  font-variant-numeric: tabular-nums;
}

.sw-cal-cell:hover:not(:disabled):not(.sw-cal-selected) {
  background-color: #F4EDE3;
  border-color: var(--sw-border-hover);
}

.sw-cal-cell.sw-cal-outside {
  color: #C5BCB5;
  cursor: default;
}

.sw-cal-cell.sw-cal-has-bookings:not(.sw-cal-selected) {
  background-color: rgba(122, 21, 37, 0.08);
  color: #7A1525;
  font-weight: 600;
}

.sw-cal-cell.sw-cal-selected {
  background-color: #7A1525;
  color: #FFFFFF;
  font-weight: 700;
  border-color: #7A1525;
  box-shadow: 0 4px 14px rgba(122, 21, 37, 0.35);
}

.sw-cal-cell:disabled {
  color: #D6CCC3;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Badges */
.sw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--sw-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.sw-badge-success {
  background-color: #EAF6F0;
  color: #12805C;
}

.sw-badge-amber {
  background-color: #FEF6EA;
  color: #9E5B05;
}

.sw-badge-burgundy {
  background-color: rgba(122, 21, 37, 0.08);
  color: #7A1525;
}

/* Custom Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
