/**
 * Support & Help Center Stylesheet
 * Bot4Trade - Modern, accessible, responsive design
 * Version: 2.1.0 - FIXED (Inter-only)
 * Last updated: November 18, 2025
 *
 * CRITICAL FIXES:
 * - All styles scoped to .support-page
 * - Prevents leaking into mobile menu
 * - Proper isolation from global styles
 *
 * NOTE: This file includes @font-face declarations that load Inter from:
 * /wp-content/themes/MrKaliBoT/assets/fonts/inter/
 * Adjust paths if your theme uses a different location.
 */

/* =========================
   Load local Inter fonts
   ========================= */
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('/wp-content/themes/MrKaliBoT/assets/fonts/inter/InterVariable.woff2') format('woff2'),
       url('/wp-content/themes/MrKaliBoT/assets/fonts/inter/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  src: url('/wp-content/themes/MrKaliBoT/assets/fonts/inter/InterVariable-Italic.woff2') format('woff2'),
       url('/wp-content/themes/MrKaliBoT/assets/fonts/inter/Inter-Italic.woff2') format('woff2');
}

/* ===================================================================
   CRITICAL: Scope ALL support styles to .support-page
   =================================================================== */
.support-page {
  /* CSS Custom Properties */
  --color-primary: #0b6b3a;
  --color-primary-hover: #148a49;
  --color-primary-dark: #0e3529;
  --color-primary-light: #e8f5ef;
  
  --color-accent-gold: #d4af37;
  --color-urgent: #c53030;
  --color-urgent-bg: #fff5f5;
  --color-urgent-border: rgba(197, 48, 48, 0.2);
  
  --color-text: #222;
  --color-text-light: #4a4a4a;
  --color-muted: #7a7a7a;
  --color-border: #e8e8e8;
  --color-surface: #ffffff;
  --color-surface-alt: #fafafc;
  --color-surface-emphasis: #f5f7fa;
  
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-primary-hover);
  --color-focus: rgba(11, 107, 58, 0.3);

  /* FONT: force Inter as the base font inside this scope */
  --font-family-base: 'Inter', sans-serif;
  --font-size-base: 1rem;
  --font-size-small: 0.875rem;
  --font-size-large: 1.125rem;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-base: 1.6;
  --line-height-heading: 1.3;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  --max-width: 1180px;
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  
  --shadow-sm: 0 2px 8px rgba(10, 20, 30, 0.04);
  --shadow: 0 6px 18px rgba(10, 20, 30, 0.06);
  --shadow-lg: 0 10px 28px rgba(10, 20, 30, 0.08);
  --shadow-card: 0 14px 36px rgba(10, 20, 30, 0.06);
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Page setup */
  min-height: 100vh;
  position: relative;
  z-index: 1; /* CRITICAL: Keep page content below menu */

  /* apply base font for the scope (helps components that use `inherit`) */
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset within support page - also enforce Inter */
.support-page *,
.support-page *::before,
.support-page *::after {
  box-sizing: border-box;
  font-family: var(--font-family-base) !important;
}

/* ===================================================================
   Skip Link (Accessibility)
   =================================================================== */
.support-page .skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-primary);
  color: white;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  border-radius: 0 0 var(--border-radius-sm) 0;
  z-index: 10000;
  transition: top var(--transition-fast);
}
.support-page .skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.support-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================================================================
   Main Container & Layout
   =================================================================== */
.support-page .terms-privacy-container {
  max-width: var(--max-width);
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  width: calc(100% - 2rem);
}

/* ===================================================================
   Breadcrumbs
   =================================================================== */
.support-page .support-breadcrumb {
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-small);
}

.support-page .support-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.support-page .support-breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--color-muted);
}

.support-page .support-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--spacing-xs);
  color: var(--color-border);
}

.support-page .support-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.support-page .support-breadcrumb a:hover,
.support-page .support-breadcrumb a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===================================================================
   Page Header - SCOPED
   =================================================================== */
.support-page .entry-header {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--color-border);
}

.support-page .entry-title {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
  line-height: var(--line-height-heading);
}

.support-page .support-subtitle {
  margin: 0;
  font-size: var(--font-size-large);
  color: var(--color-text-light);
  font-weight: var(--font-weight-normal);
}

/* ===================================================================
   Grid Layout
   =================================================================== */
.support-page .bot4-support-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .support-page .bot4-support-grid {
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 920px) {
  .support-page .bot4-support-grid {
    grid-template-columns: 1fr;
  }
  
  .support-page .support-sidebar {
    margin-top: var(--spacing-lg);
  }
}

/* ===================================================================
   Support Cards
   =================================================================== */
.support-page .support-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--spacing-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.support-page .support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(10, 20, 30, 0.1);
}

.support-page .support-card:last-child {
  margin-bottom: 0;
}

.support-page .support-card h2 {
  margin: 0 0 var(--spacing-lg) 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.support-page .support-card h3 {
  margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
}

.support-page .support-card h4 {
  margin: var(--spacing-md) 0 var(--spacing-xs) 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.support-page .support-card p {
  margin: var(--spacing-sm) 0;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===================================================================
   Support Checklist
   =================================================================== */
.support-page .support-checklist {
  margin: var(--spacing-md) 0;
  padding-left: 0;
  list-style: none;
}

.support-page .support-checklist li {
  margin: var(--spacing-sm) 0;
  padding-left: var(--spacing-xl);
  position: relative;
  color: var(--color-text-light);
  line-height: 1.7;
}

.support-page .support-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.125em;
}

/* ===================================================================
   Urgent Section
   =================================================================== */
.support-page .urgent-section {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--color-urgent-bg);
  border: 2px solid var(--color-urgent-border);
  border-radius: var(--border-radius);
}

.support-page .urgent-section h3 {
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--color-urgent);
}

.support-page .urgent-content {
  color: var(--color-text);
}

.support-page .urgent-email {
  color: var(--color-urgent) !important;
  font-weight: var(--font-weight-bold);
}

/* ===================================================================
   Support Hours
   =================================================================== */
.support-page .support-hours {
  margin: var(--spacing-lg) 0 0 0;
  padding: var(--spacing-md);
  background: var(--color-surface-emphasis);
  border-radius: var(--border-radius-sm);
}

.support-page .hours-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-xs) var(--spacing-md);
  margin: var(--spacing-sm) 0 0 0;
}

.support-page .hours-list dt {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.support-page .hours-list dd {
  margin: 0;
  color: var(--color-text-light);
}

/* ===================================================================
   FAQ Section
   =================================================================== */
.support-page .faq-section {
  scroll-margin-top: var(--spacing-xl);
}

.support-page .faq-list {
  margin: var(--spacing-md) 0;
}

.support-page .faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
}

.support-page .faq-item:last-child {
  border-bottom: none;
}

.support-page .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  margin: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.support-page .faq-question:hover {
  background: var(--color-primary-light);
}

.support-page .faq-question:focus {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.support-page .faq-question-text {
  flex: 1;
}

.support-page .faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  line-height: 1;
  transition: all var(--transition-base);
}

.support-page .faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.support-page .faq-answer {
  padding: var(--spacing-md) var(--spacing-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

.support-page .faq-answer[hidden] {
  display: none;
}

.support-page .faq-answer p {
  margin: 0;
}

.support-page .faq-footer {
  margin-top: var(--spacing-lg) !important;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-small);
  color: var(--color-muted);
}

/* ===================================================================
   Sidebar Styling
   =================================================================== */
.support-page .support-sidebar .support-card {
  padding: var(--spacing-lg);
}

.support-page .support-meta h3,
.support-page .escalation-card h3 {
  margin-top: 0;
  font-size: var(--font-size-large);
  color: var(--color-primary);
}

.support-page .resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-page .resource-list li {
  margin: var(--spacing-md) 0;
  padding-left: 0;
}

.support-page .resource-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-small);
}

.support-page .emergency-phone {
  padding: var(--spacing-sm);
  background: var(--color-surface-alt);
  border-radius: var(--border-radius-sm);
  border: 1px dashed var(--color-border);
}

.support-page .emergency-phone strong {
  color: var(--color-urgent);
}

.support-page .emergency-phone small {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-style: italic;
}

/* --- replace monospace phone/email with Inter to keep typography consistent --- */
.support-page .phone-link,
.support-page .email-link {
  font-family: var(--font-family-base) !important;
  font-size: 0.9375em;
  font-weight: var(--font-weight-bold);
}

/* divider, meta, helpful links */
.support-page .divider {
  margin: var(--spacing-lg) 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.support-page .meta-section {
  margin: var(--spacing-lg) 0;
}

.support-page .meta-section:first-of-type {
  margin-top: 0;
}

.support-page .meta-section p {
  font-size: var(--font-size-small);
  color: var(--color-muted);
}

.support-page .helpful-links-heading {
  margin-top: var(--spacing-lg);
}

.support-page .helpful-links {
  margin: var(--spacing-sm) 0 0 0;
  padding: 0;
  list-style: none;
}

.support-page .helpful-links li {
  margin: var(--spacing-xs) 0;
}

.support-page .helpful-links a {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-small);
  transition: all var(--transition-fast);
}

.support-page .helpful-links a::before {
  content: '→';
  margin-right: var(--spacing-xs);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.support-page .helpful-links a:hover {
  background: var(--color-primary-light);
  transform: translateX(4px);
}

/* ===================================================================
   Links
   =================================================================== */
.support-page .support-card a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-fast);
}

.support-page .support-card a:hover,
.support-page .support-card a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.support-page .support-card a:focus {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===================================================================
   Print Styles
   =================================================================== */
@media print {
  .support-page {
    --color-primary: #000;
    --color-text: #000;
    --color-surface: #fff;
  }

  .support-page body {
    font-size: 12pt;
  }

  .support-page .terms-privacy-container {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .support-page .skip-link,
  .support-page .support-breadcrumb {
    display: none;
  }

  .support-page .bot4-support-grid {
    display: block;
  }

  .support-page .support-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
  }

  .support-page .faq-answer[hidden] {
    display: block !important;
  }

  .support-page .faq-icon {
    display: none;
  }

  .support-page a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }

  .support-page a[href^="tel"]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }
}

/* ===================================================================
   Responsive Design
   =================================================================== */
@media (max-width: 767px) {
  .support-page .terms-privacy-container {
    padding: var(--spacing-md);
    margin: var(--spacing-lg) auto;
  }

  .support-page .support-card {
    padding: var(--spacing-md);
  }

  .support-page .support-checklist li {
    padding-left: var(--spacing-lg);
    font-size: var(--font-size-small);
  }

  .support-page .hours-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }

  .support-page .hours-list dd {
    margin-left: var(--spacing-md);
  }
}

/* ===================================================================
   Reduced Motion
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  .support-page *,
  .support-page *::before,
  .support-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .support-page .support-card:hover {
    transform: none;
  }

  .support-page .helpful-links a:hover {
    transform: none;
  }

  .support-page .faq-icon {
    transition: none;
  }
}

/* ===================================================================
   High Contrast Mode
   =================================================================== */
@media (prefers-contrast: high) {
  .support-page {
    --color-border: #000;
    --color-primary: #0a5a2f;
  }

  .support-page .support-card {
    border-width: 2px;
  }

  .support-page .faq-question {
    text-decoration: underline;
  }
}

/* ===================================================================
   Focus Visible
   =================================================================== */
.support-page :focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.support-page :focus:not(:focus-visible) {
  outline: none;
}

/* End of support.css */
