/* =========================================================
   Champions Academy - Tutor LMS 4.x hard-fixes
   Loaded after tutor-woo.css. Remaps Tutor's own CSS
   custom properties so every default-styled element inherits
   the dark theme, plus targeted overrides for widgets that
   set explicit hex colors instead of vars.
   ========================================================= */

/* -------- Remap ALL Tutor CSS vars for the dark theme -------- */
body.champions-theme,
body.champions-theme .tutor-wrap,
body.champions-theme .tutor-container,
body.champions-theme .tutor-cart-page,
body.champions-theme .tutor-cart-page-wrapper {
  --tutor-color-primary: #ffde02;
  --tutor-color-primary-rgb: 255,222,2;
  --tutor-color-primary-hover: #ffe600;
  --tutor-color-secondary: #ffde02;
  --tutor-color-white: #171717;            /* Tutor uses this for "surface bg", not literal white */
  --tutor-color-black: #ffffff;            /* Tutor uses this for "primary text" - map to white */
  --tutor-color-muted: #7e8395;
  --tutor-color-subdued: #a0a4b0;
  --tutor-color-hints: #d8dade;
  --tutor-color-gray: #7e8395;
  --tutor-color-gray-10: #202023;
  --tutor-color-gray-20: #2a2a2e;
  --tutor-color-gray-30: #3a3a3f;
  --tutor-color-gray-40: #585c6b;
  --tutor-color-gray-50: #7e8395;
  --tutor-color-gray-60: #a0a4b0;
  --tutor-color-gray-70: #c0c4cc;
  --tutor-color-gray-80: #e0e2e6;
  --tutor-color-gray-90: #f0f2f4;
  --tutor-color-gray-100: #ffffff;
  --tutor-color-background: #07070a;
  --tutor-color-background-surface: #171717;
  --tutor-body-color: #ffffff;
  --tutor-body-color-rgb: 255,255,255;
  --tutor-body-bg: #07070a;
  --tutor-border-color: rgba(255,255,255,0.14);
}

/* -------- Tutor utility color classes forced onto our palette -------- */
body.champions-theme .tutor-color-black,
body.champions-theme .tutor-color-primary-black,
body.champions-theme .tutor-color-text-primary {
  color: #ffffff !important;
}

body.champions-theme .tutor-color-muted,
body.champions-theme .tutor-color-subdued,
body.champions-theme .tutor-color-hints,
body.champions-theme .tutor-color-secondary {
  color: var(--muted) !important;
}

body.champions-theme .tutor-color-primary {
  color: var(--yellow) !important;
}

body.champions-theme .tutor-color-gray-10 { color: #d8dade !important; }
body.champions-theme .tutor-color-gray-90 { color: #ffffff !important; }

/* -------- Cart page -------- */
body.champions-theme .tutor-cart-page,
body.champions-theme .tutor-cart-page-wrapper {
  background: var(--bg) !important;
  color: #ffffff !important;
}

body.champions-theme .tutor-cart-page h3,
body.champions-theme .tutor-cart-page h5 {
  color: #ffffff !important;
}

body.champions-theme .tutor-cart-course-list {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden;
}

body.champions-theme .tutor-cart-course-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
  color: #ffffff !important;
}

body.champions-theme .tutor-cart-course-item:last-child {
  border-bottom: 0 !important;
}

body.champions-theme .tutor-cart-course-thumb {
  flex: 0 0 140px;
  border-radius: var(--r) !important;
  overflow: hidden;
}

body.champions-theme .tutor-cart-course-thumb img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  display: block;
  border-radius: var(--r) !important;
}

body.champions-theme .tutor-cart-course-title {
  flex: 1;
  min-width: 0;
}

body.champions-theme .tutor-cart-course-title h5,
body.champions-theme .tutor-cart-course-title h5 a {
  font-family: var(--font) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  line-height: 1.35;
}

body.champions-theme .tutor-cart-course-title h5 a:hover {
  color: var(--yellow) !important;
}

body.champions-theme .tutor-cart-course-info {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  gap: 0.75rem;
  color: var(--muted) !important;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.champions-theme .tutor-cart-course-info li {
  list-style: none;
  color: var(--muted) !important;
}

body.champions-theme .tutor-cart-course-price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}

body.champions-theme .tutor-cart-course-price {
  text-align: right;
}

body.champions-theme .tutor-cart-course-price .tutor-fw-bold,
body.champions-theme .tutor-cart-course-price > div:first-child {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  color: var(--yellow) !important;
  line-height: 1;
  letter-spacing: 0.02em;
}

body.champions-theme .tutor-cart-discount-price {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  color: var(--muted-2) !important;
  text-decoration: line-through;
  margin-top: 0.15rem;
}

body.champions-theme .tutor-cart-remove-button,
body.champions-theme .tutor-btn.tutor-btn-link {
  background: var(--yellow) !important;
  color: #07070a !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.1rem !important;
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer;
}

body.champions-theme .tutor-cart-remove-button:hover {
  background: var(--yellow-2) !important;
  transform: translateY(-1px);
}

/* Summary card */
body.champions-theme .tutor-cart-summery {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  padding: 1.5rem !important;
  color: #ffffff !important;
}

body.champions-theme .tutor-cart-summery-top,
body.champions-theme .tutor-cart-summery-bottom {
  background: transparent !important;
}

body.champions-theme .tutor-cart-summery-top {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

body.champions-theme .tutor-cart-summery-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  color: #ffffff !important;
  font-family: var(--font);
  font-size: 1rem;
}

body.champions-theme .tutor-cart-summery-item > div:first-child {
  color: var(--text-2) !important;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.champions-theme .tutor-cart-summery-item > div:last-child {
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

body.champions-theme .tutor-cart-summery-bottom .tutor-cart-summery-item:last-of-type > div:last-child {
  color: var(--yellow) !important;
  font-size: 1.75rem;
}

body.champions-theme .tutor-cart-summery .tutor-btn-primary {
  background: var(--yellow) !important;
  color: #07070a !important;
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
  box-shadow: 0 10px 36px rgba(255,222,2,0.22) !important;
  width: 100% !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  margin-top: 1rem;
}

body.champions-theme .tutor-cart-summery .tutor-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(255,222,2,0.32) !important;
}

body.champions-theme .tutor-cart-empty-state {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-2) !important;
}

body.champions-theme .tutor-cart-empty-state p {
  color: var(--text-2) !important;
  font-family: var(--font);
  font-size: 1.1rem;
  margin: 1.25rem 0;
}

body.champions-theme .tutor-cart-empty-state img {
  max-width: 220px;
  margin: 0 auto;
  filter: brightness(0.85) contrast(0.9);
  opacity: 0.85;
}

/* -------- Tutor Single Course - sidebar widget card -------- */
body.champions-theme .tutor-course-details-widget,
body.champions-theme .tutor-course-details-widget-col-2,
body.champions-theme .tutor-course-widget,
body.champions-theme .tutor-course-widget-info-list,
body.champions-theme .tutor-single-course-sidebar {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  color: #ffffff !important;
  padding: 1.5rem !important;
}

body.champions-theme .tutor-course-details-widget-title,
body.champions-theme .tutor-course-widget-info-list-title {
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem !important;
}

body.champions-theme .tutor-course-details-widget-list,
body.champions-theme .tutor-course-details-widget-list li,
body.champions-theme .tutor-course-widget-info-list li {
  color: var(--text-2) !important;
  background: transparent !important;
  border-color: var(--line) !important;
}

body.champions-theme .tutor-course-details-widget-list li,
body.champions-theme .tutor-course-widget-info-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

body.champions-theme .tutor-course-details-widget-list li:last-child,
body.champions-theme .tutor-course-widget-info-list li:last-child {
  border-bottom: 0;
}

body.champions-theme .tutor-course-details-widget-list li span,
body.champions-theme .tutor-course-widget-info-list li span {
  color: var(--text-2) !important;
}

body.champions-theme .tutor-course-details-widget-list li strong,
body.champions-theme .tutor-course-widget-info-list li strong {
  color: #ffffff !important;
}

/* Sidebar course thumbnail area */
body.champions-theme .tutor-course-thumbnail img,
body.champions-theme .tutor-course-details-widget .tutor-course-thumbnail img {
  border-radius: var(--r) !important;
}

/* Sidebar price */
body.champions-theme .tutor-course-details-widget .tutor-course-price,
body.champions-theme .tutor-course-details-widget .price,
body.champions-theme .tutor-single-course-sidebar .price {
  font-family: var(--font-display) !important;
  font-size: 2.25rem !important;
  color: var(--yellow) !important;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0.5rem 0 1rem !important;
}

body.champions-theme .tutor-course-details-widget del {
  color: var(--muted-2) !important;
  font-size: 1.1rem !important;
  margin-right: 0.5rem;
}

/* -------- Topic accordion (Topic 1 / Topic 2 white bars) -------- */
body.champions-theme .tutor-accordion,
body.champions-theme .tutor-accordion-item {
  background: transparent !important;
  border: none !important;
  margin-bottom: 0.5rem;
}

body.champions-theme .tutor-accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  overflow: hidden;
}

body.champions-theme .tutor-accordion-item-header {
  background: var(--bg-card) !important;
  color: #ffffff !important;
  padding: 1rem 1.25rem !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border: none !important;
  cursor: pointer;
}

body.champions-theme .tutor-accordion-item-header:hover {
  background: var(--bg-elev) !important;
}

body.champions-theme .tutor-accordion-item-header.is-active,
body.champions-theme .tutor-accordion-item.is-active .tutor-accordion-item-header {
  background: var(--bg-elev) !important;
  color: var(--yellow) !important;
}

body.champions-theme .tutor-accordion-item-header * {
  color: inherit !important;
}

body.champions-theme .tutor-accordion-item-body {
  background: var(--bg-card) !important;
  color: var(--text-2) !important;
  border-top: 1px solid var(--line) !important;
}

body.champions-theme .tutor-accordion-item-body-content {
  padding: 0.5rem 0 !important;
  background: transparent !important;
}

/* Course content list items (lessons under each topic) */
body.champions-theme .tutor-course-content-list-item {
  background: transparent !important;
  color: var(--text-2) !important;
  padding: 0.75rem 1.25rem !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
}

body.champions-theme .tutor-course-content-list-item:last-child {
  border-bottom: 0 !important;
}

body.champions-theme .tutor-course-content-list-item:hover {
  background: rgba(255,255,255,0.02) !important;
}

body.champions-theme .tutor-course-content-list-item-title,
body.champions-theme .tutor-course-content-list-item-title * {
  color: var(--text) !important;
  font-family: var(--font);
  font-weight: 500;
}

body.champions-theme .tutor-course-content-list-item-duration,
body.champions-theme .tutor-course-content-list-item-status {
  color: var(--muted) !important;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.champions-theme .tutor-icon-lock-line,
body.champions-theme .tutor-icon-bullet-point,
body.champions-theme .tutor-icon-document-text,
body.champions-theme .tutor-icon-circle-question-mark {
  color: var(--muted) !important;
}

/* Tab area */
body.champions-theme .tutor-course-details-tab,
body.champions-theme .tutor-tab {
  background: transparent !important;
  color: #ffffff !important;
}

body.champions-theme .tutor-tab-item,
body.champions-theme .tutor-tab .tutor-tab-item {
  background: transparent !important;
  border-bottom: 2px solid transparent !important;
  color: var(--muted) !important;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem !important;
}

body.champions-theme .tutor-tab-item.is-active,
body.champions-theme .tutor-tab-item.active,
body.champions-theme .tutor-tab .is-active {
  color: var(--yellow) !important;
  border-bottom-color: var(--yellow) !important;
  background: transparent !important;
}

/* Content title on single course */
body.champions-theme .tutor-course-content-title {
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem !important;
}

/* Any residual light backgrounds inside tutor cards */
body.champions-theme .tutor-card,
body.champions-theme .tutor-card-body,
body.champions-theme .tutor-card-footer {
  color: #ffffff !important;
}

body.champions-theme .tutor-card-body h5,
body.champions-theme .tutor-card-body h6,
body.champions-theme .tutor-card-body p,
body.champions-theme .tutor-card-body a {
  color: inherit !important;
}

/* Level chip / meta chips */
body.champions-theme .tutor-course-level,
body.champions-theme .tutor-course-duration {
  color: var(--muted) !important;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tooltip */
body.champions-theme .tooltip-txt {
  background: var(--bg-elev) !important;
  color: var(--text-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  font-family: var(--font);
  font-size: 0.8rem;
}

/* Checkout page (Tutor native, not Woo) */
body.champions-theme .tutor-checkout-page,
body.champions-theme .tutor-checkout-page-wrapper {
  background: var(--bg) !important;
  color: #ffffff !important;
}

body.champions-theme .tutor-checkout-billing-form,
body.champions-theme .tutor-checkout-summary,
body.champions-theme .tutor-checkout-order-summary {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  padding: 1.5rem !important;
  color: #ffffff !important;
}

body.champions-theme .tutor-checkout-page label {
  color: var(--yellow) !important;
  font-family: var(--font-ui) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

body.champions-theme .tutor-checkout-page input,
body.champions-theme .tutor-checkout-page select,
body.champions-theme .tutor-checkout-page textarea,
body.champions-theme .tutor-form-control:not(.tutor-form-select) {
  background: var(--bg) !important;
  border: 1px solid var(--line-2) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 0.85rem 1rem !important;
  font-family: var(--font) !important;
}

body.champions-theme .tutor-checkout-page input:focus,
body.champions-theme .tutor-checkout-page select:focus,
body.champions-theme .tutor-checkout-page textarea:focus {
  outline: none !important;
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px var(--yellow-soft) !important;
}

/* Ensure any residual white surface inside Tutor gets themed */
body.champions-theme .tutor-wrap [style*="background: #fff"],
body.champions-theme .tutor-wrap [style*="background:#fff"],
body.champions-theme .tutor-wrap [style*="background-color: #fff"],
body.champions-theme .tutor-wrap [style*="background-color:#fff"] {
  background: var(--bg-card) !important;
  color: #ffffff !important;
}
