/* ==========================================================================
   Axios Media Group — Universal Help, Tutorial, Ticket & Feedback System
   File: axios-help-system.css
   Standardized styling for modals, tabs, tour spotlight, ticket forms, and stars.
   ========================================================================== */

:root {
  --ax-help-bg: #0f172a;
  --ax-help-surface: #1e293b;
  --ax-help-border: rgba(255, 255, 255, 0.1);
  --ax-help-accent: #38bdf8;
  --ax-help-accent-glow: rgba(56, 189, 248, 0.2);
  --ax-help-text: #f8fafc;
  --ax-help-text-muted: #94a3b8;
  --ax-help-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Modal Overlay Backdrop */
.ax-help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: var(--ax-help-font);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.ax-help-backdrop.ax-active {
  display: flex;
  opacity: 1;
}

/* Modal Card */
.ax-help-modal {
  background: #0f172a;
  background: linear-gradient(145deg, #131d35 0%, #0a0f1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ax-help-text);
  animation: axModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes axModalSlideUp {
  from {
    transform: translateY(20px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Header */
.ax-help-header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
}

.ax-help-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ax-help-app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 20px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.ax-help-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.ax-help-subtitle {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.ax-help-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ax-help-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Nav Tabs */
.ax-help-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 18px;
  background: rgba(10, 15, 29, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.ax-help-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ax-help-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ax-help-tab-btn.ax-active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* Modal Body */
.ax-help-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(85vh - 130px);
}

.ax-help-pane {
  display: none;
}

.ax-help-pane.ax-active {
  display: block;
}

/* Cards & Bento Blocks */
.ax-help-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ax-help-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.ax-help-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.85);
}

.ax-help-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ax-help-card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* Banner / Action Callouts */
.ax-help-banner {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ax-help-btn-primary {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ax-help-btn-primary:hover {
  background: #7dd3fc;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.ax-help-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ax-help-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Forms */
.ax-form-group {
  margin-bottom: 16px;
}

.ax-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.ax-form-input,
.ax-form-select,
.ax-form-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.ax-form-input:focus,
.ax-form-select:focus,
.ax-form-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.ax-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Star Rating */
.ax-star-rating {
  display: flex;
  gap: 8px;
  font-size: 26px;
  cursor: pointer;
}

.ax-star {
  color: #475569;
  transition: color 0.15s ease;
}

.ax-star.ax-filled,
.ax-star:hover,
.ax-star:hover ~ .ax-star {
  color: #fbbf24;
}

/* Category Chips */
.ax-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ax-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ax-chip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ax-chip-btn.ax-selected {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Tickets History Table */
.ax-tickets-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 12px;
}

.ax-tickets-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-weight: 600;
}

.ax-tickets-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.ax-priority-p0 { color: #f43f5e; font-weight: bold; }
.ax-priority-p1 { color: #fb923c; font-weight: bold; }
.ax-priority-p2 { color: #38bdf8; }
.ax-priority-p3 { color: #94a3b8; }

/* Interactive Spotlight Tour Overlay */
.ax-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  display: none;
}

.ax-tour-overlay.ax-active {
  display: block;
}

.ax-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  pointer-events: auto;
}

.ax-tour-card {
  position: fixed;
  z-index: 100002;
  background: #0f172a;
  border: 1px solid #38bdf8;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 18px;
  max-width: 380px;
  width: 90%;
  color: #fff;
  font-family: var(--ax-help-font);
  pointer-events: auto;
  animation: axTourPop 0.2s ease-out;
}

@keyframes axTourPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ax-tour-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ax-tour-step-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.ax-tour-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.ax-tour-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 14px 0;
}

.ax-tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ax-tour-dots {
  display: flex;
  gap: 6px;
}

.ax-tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ax-tour-dot.ax-active {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

/* Toast Notifications */
.ax-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid #38bdf8;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.3);
  font-family: var(--ax-help-font);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100010;
  animation: axToastSlide 0.25s ease-out;
}

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