/**
 * FortCyber UI — wspólne tokeny i typografia (zgodnie z prototypami v2).
 */
:root {
  --fc-primary: #954489;
  --fc-primary-dark: #7e3873;
  --fc-primary-light: #b66aaf;
  --fc-primary-soft: #f7edf5;
  --fc-primary-soft-2: #fbf5fa;
  --fc-bg: #f7f7fa;
  --fc-card: #ffffff;
  --fc-surface: #fbfafd;
  --fc-border: #e7dfe8;
  --fc-text: #1e1b24;
  --fc-muted: #6f6a78;
  --fc-muted-2: #9b95a4;
  --fc-success: #1fa971;
  --fc-success-bg: #eaf8f2;
  --fc-danger: #e04f5f;
  --fc-danger-bg: #fdecef;
  --fc-warning: #f2a93b;
  --fc-warning-bg: #fff5e6;
  --fc-shadow: 0 18px 45px rgba(45, 35, 55, 0.08);
  --fc-shadow-soft: 0 8px 24px rgba(45, 35, 55, 0.06);
  --fc-radius-lg: 12px;
  --fc-radius-md: 10px;
  --fc-radius-sm: 6px;
  --fc-layout-max: 1480px;
  --fc-layout-gutter: 28px;
  --fc-layout-gutter-md: 20px;
  --fc-layout-width: min(var(--fc-layout-max), calc(100vw - var(--fc-layout-gutter)));
  --fc-container: var(--fc-layout-max);
  --fc-font: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fallbacki motywu FortCyber — gdy color.css nie załaduje się poprawnie */
  --desktop-header-bg: #2f3759;
  --desktop-header-link: #fffffe;
  --desktop-header-link-active: #4ad3b1;
  --desktop-headings: #2f3757;
  --desktop-text: #2f3756;
  --desktop-link: #4ad3b2;
  --desktop-link-hover: #2f3755;
  --desktop-button-color: #4ad3b3;
  --desktop-button-color-hover-primary: #43b598;
  --desktop-button-color-hover-secondary: #a4e9d7;
  --desktop-button-text-primary: #2f3754;
  --desktop-button-text-secondary: #2f3753;
}

/* Nagłówek witryny — zawsze widoczne tło (logo i linki są jasne) */
header.page-header,
header.page-header .management-dropdown-layer {
  background-color: var(--desktop-header-bg);
}

@media (max-width: 960px) {
  :root {
    --fc-layout-width: min(var(--fc-layout-max), calc(100vw - var(--fc-layout-gutter-md)));
  }
}

/* Wspólna szerokość środkowej kolumny — nagłówek + treść v2 */
header.page-header > .container,
header.page-header .management-dropdown-layer > .container,
html.fc-training-progress-page body.fc-training-progress-page .page-main > .container,
html.fc-training-details-page body.fc-training-details-page .page-main > .container,
html.fc-training-player-page body.fc-training-player-page .page-main > .container,
html.fc-user-profile-page body.fc-user-profile-page .page-main > .container {
  max-width: var(--fc-layout-width) !important;
  width: 100% !important;
}

html.fc-training-progress-page body.fc-training-progress-page .page-main > .container > .row > [class*="col-"],
html.fc-training-details-page body.fc-training-details-page .page-main > .container > .row > [class*="col-"],
html.fc-training-player-page body.fc-training-player-page .page-main > .container > .row > [class*="col-"],
html.fc-user-profile-page body.fc-user-profile-page .page-main > .container > .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100% !important;
  width: 100%;
}

html.fc-training-progress-page body.fc-training-progress-page .page-main .content-box,
html.fc-training-details-page body.fc-training-details-page .page-main .content-box,
html.fc-training-player-page body.fc-training-player-page .page-main .content-box,
html.fc-user-profile-page body.fc-user-profile-page .page-main .content-box {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-left: 0;
  margin-right: 0;
  max-width: none !important;
  overflow: visible;
  padding: 0;
  width: 100%;
}

/* Wspólne tło stron szkolenia v2 — bez jaśniejszego pasa / „kreski” między sekcjami */
html.fc-training-progress-page body.fc-training-progress-page,
html.fc-training-details-page body.fc-training-details-page,
html.fc-training-player-page body.fc-training-player-page {
  background:
    radial-gradient(circle at 15% 8%, rgba(149, 68, 137, 0.07), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(149, 68, 137, 0.05), transparent 28%),
    var(--fc-bg) !important;
}

html.fc-training-progress-page body.fc-training-progress-page .dialog-off-canvas-main-canvas,
html.fc-training-details-page body.fc-training-details-page .dialog-off-canvas-main-canvas,
html.fc-training-player-page body.fc-training-player-page .dialog-off-canvas-main-canvas,
html.fc-training-progress-page body.fc-training-progress-page .page-main,
html.fc-training-details-page body.fc-training-details-page .page-main,
html.fc-training-player-page body.fc-training-player-page .page-main,
html.fc-training-progress-page body.fc-training-progress-page .page-main > .container,
html.fc-training-details-page body.fc-training-details-page .page-main > .container,
html.fc-training-player-page body.fc-training-player-page .page-main > .container,
html.fc-training-progress-page body.fc-training-progress-page .page-main > .container > .row,
html.fc-training-details-page body.fc-training-details-page .page-main > .container > .row,
html.fc-training-player-page body.fc-training-player-page .page-main > .container > .row,
html.fc-training-progress-page body.fc-training-progress-page .page-main > .container > .row > [class*="col-"],
html.fc-training-details-page body.fc-training-details-page .page-main > .container > .row > [class*="col-"],
html.fc-training-player-page body.fc-training-player-page .page-main > .container > .row > [class*="col-"] {
  background: transparent;
}

html.fc-training-progress-page .fc-tp-page,
html.fc-training-details-page .fc-td-page,
html.fc-training-player-page .fc-tp-player-page {
  background: transparent;
}

.fc-ui .fc-meta-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.fc-ui .fc-meta-tag--align-end {
  margin-left: auto;
}

.fc-ui .fc-meta-tag {
  background: var(--fc-primary-soft);
  border-radius: 999px;
  color: var(--fc-primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 8px 14px;
  text-transform: none;
  white-space: nowrap;
}

.fc-ui .fc-meta-tag--neutral {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  color: var(--fc-muted);
}

.fc-ui .fc-meta-tag--warning {
  background: var(--fc-warning-bg, #fff5e6);
  border: 1px solid rgba(242, 169, 59, 0.25);
  color: #9a6b00;
}

.fc-ui .fc-breadcrumb {
  align-items: center;
  color: var(--fc-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  margin-bottom: 22px;
}

.fc-ui .fc-breadcrumb__sep {
  opacity: 0.45;
}

.fc-ui .fc-breadcrumb a {
  color: var(--fc-muted);
  font-weight: 700;
  text-decoration: none;
}

.fc-ui .fc-breadcrumb a:hover {
  color: var(--fc-primary);
}

.fc-ui .fc-breadcrumb span:last-child {
  color: var(--fc-text);
  font-weight: 800;
}

@media (max-width: 620px) {
  .fc-ui .fc-breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
  }
}

.fc-ui .fc-btn,
.fc-ui a.fc-btn,
.fc-ui button.fc-btn {
  align-items: center;
  border-radius: var(--fc-radius-sm, 6px);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
  transition: 160ms ease;
  white-space: nowrap;
}

.fc-ui .fc-btn--primary {
  background: var(--fc-primary);
  border: 1px solid var(--fc-primary);
  box-shadow: 0 8px 20px rgba(149, 68, 137, 0.2);
  color: #fff;
}

.fc-ui .fc-btn--primary:hover {
  background: var(--fc-primary-dark);
  color: #fff;
  text-decoration: none;
}

.fc-ui .fc-btn--outline {
  background: #fff;
  border: 1px solid rgba(149, 68, 137, 0.4);
  color: var(--fc-primary);
}

.fc-ui .fc-btn--outline:hover {
  background: var(--fc-primary-soft);
  color: var(--fc-primary);
  text-decoration: none;
}

.fc-ui .fc-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.fc-ui .fc-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.fc-ui .fc-btn--sm {
  min-height: 36px;
  padding: 8px 14px;
}

.fc-ui,
.fc-ui *,
.fc-tp-page,
.fc-tp-page *,
.fc-profile-page,
.fc-profile-page * {
  font-family: var(--fc-font);
}

html.fc-training-details-page .fc-td-page .fc-tp-course-info__title,
html.fc-training-details-page .fc-td-page .fc-tp-course-cover__title,
html.fc-training-details-page .fc-td-page .fc-tp-course-cover h2 {
  text-transform: none !important;
}

html.fc-training-details-page .fc-td-page .fc-td-eyebrow--inverse {
  letter-spacing: 0;
  text-transform: none !important;
}
