/* Classes that several components use. A class that only one component uses belongs in the .razor.css of that component. */

/* Wrapper of a component whose outer element comes from another component (MudBlazor, NavLink), see KaaCard.razor. */
.kaa-scope {
    display: contents;
}

.kaa-display-hero,
.kaa-display-score,
.kaa-display-initials,
.kaa-display-badge {
    font-synthesis: none;
}

/* "KAA GENT" in Dark Blue (app bar text), "SCOUTING" in Reflex Blue: the display font has one weight, so color makes the difference.
   TODO: af te stemmen met klant. */
.kaa-brand-light {
    color: var(--mud-palette-primary);
}

.kaa-icon {
    flex-shrink: 0;
    /* Strokes on the edge of the box (e.g. Shield) are drawn like in Figma instead of being clipped. */
    overflow: visible;
}

/* Display text styles that don't fit in a MudTheme (style guide display scale). */
.kaa-display-hero {
    font-family: var(--kaa-font-display);
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Scores: H3 step. */
.kaa-display-score {
    font-family: var(--mud-typography-h3-family);
    font-size: var(--mud-typography-h3-size);
    font-weight: var(--mud-typography-h3-weight);
    line-height: var(--mud-typography-h3-lineheight);
    letter-spacing: var(--mud-typography-h3-letterspacing);
    text-transform: uppercase;
}

/* Initials on the player card: H2 step. */
.kaa-display-initials {
    font-family: var(--mud-typography-h2-family);
    font-size: var(--mud-typography-h2-size);
    font-weight: var(--mud-typography-h2-weight);
    line-height: var(--mud-typography-h2-lineheight);
    letter-spacing: var(--mud-typography-h2-letterspacing);
    text-transform: uppercase;
}

/* Badge values: H5 step. */
.kaa-display-badge {
    font-family: var(--mud-typography-h5-family);
    font-size: var(--mud-typography-h5-size);
    font-weight: var(--mud-typography-h5-weight);
    line-height: var(--mud-typography-h5-lineheight);
    letter-spacing: var(--mud-typography-h5-letterspacing);
    text-transform: uppercase;
}

/* Ranking row State=Selected. Use RowClassFunc to set kaa-row-selected. */
.mud-table-row.kaa-row-selected {
    background-color: var(--kaa-bg-subtle);
}

/* KaaLoadingState, KaaEmptyState, KaaErrorState: centered status block inside a card or section. */
.kaa-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
    text-align: center;
}

.kaa-state-compact {
    padding: 16px;
    gap: 6px;
}

.kaa-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: var(--kaa-radius-full);
    background-color: var(--kaa-bg-subtle);
    color: var(--mud-palette-primary);
}

.kaa-state-compact .kaa-state-icon {
    width: 36px;
    height: 36px;
}

.kaa-state-text {
    max-width: 420px;
    color: var(--mud-palette-text-secondary);
}

.kaa-state-action {
    margin-top: 8px;
}

.kaa-link {
    color: var(--mud-palette-primary);
    font-family: var(--mud-typography-subtitle1-family);
    font-size: var(--mud-typography-subtitle1-size);
    font-weight: var(--mud-typography-subtitle1-weight);
    line-height: var(--mud-typography-subtitle1-lineheight);
    letter-spacing: var(--mud-typography-subtitle1-letterspacing);
}

.kaa-slider-help:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* KaaFilterChip (Filter chip 25:2937). */
.mud-chip.mud-chip-size-medium.kaa-filter-chip {
    padding: 5px 6px 5px 10px;
    background-color: var(--kaa-bg-subtle);
    color: var(--mud-palette-primary-darken);
}

.mud-chip.kaa-filter-chip .mud-chip-close-button {
    width: 14px;
    height: 14px;
    padding: 0;
    margin: 0 0 0 6px;
}

.mud-chip.kaa-filter-chip .mud-chip-close-button .mud-icon-root {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.kaa-slider-label {
    color: var(--mud-palette-text-primary);
    font-family: var(--mud-typography-subtitle2-family);
    font-size: var(--mud-typography-subtitle2-size);
    font-weight: var(--mud-typography-subtitle2-weight);
    line-height: var(--mud-typography-subtitle2-lineheight);
    letter-spacing: var(--mud-typography-subtitle2-letterspacing);
}

/* KaaSlider and KaaRangeSlider (Slider 25:3534). */
.kaa-slider {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.kaa-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kaa-slider-help {
    display: inline-flex;
    color: var(--mud-palette-text-primary);
    border-radius: var(--kaa-radius-full);
}

.kaa-help-text {
    display: block;
    max-width: 300px;
    white-space: normal;
    text-align: left;
}

.kaa-slider-values {
    display: flex;
    justify-content: space-between;
    color: var(--mud-palette-text-secondary);
    font-family: var(--mud-typography-caption-family);
    font-size: var(--mud-typography-caption-size);
    font-weight: var(--mud-typography-caption-weight);
    line-height: var(--mud-typography-caption-lineheight);
    letter-spacing: var(--mud-typography-caption-letterspacing);
}

.kaa-filter-panel-divider {
    height: 1px;
    background-color: var(--mud-palette-lines-default);
}

/* Shared by the charts: a dot in the color of a series and the legend below a chart. */
.kaa-chart-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Display/Stat: the value of a metric tile. */
.kaa-display-stat {
    font-family: var(--kaa-font-display);
    font-size: 23px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    font-synthesis: none;
}

.kaa-game-finder-player-link:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.kaa-game-finder-col-labels {
    width: 96px;
}

.kaa-game-finder-player-link {
    color: var(--mud-palette-primary);
    font-family: var(--mud-typography-subtitle1-family);
    font-size: var(--mud-typography-subtitle1-size);
    font-weight: var(--mud-typography-subtitle1-weight);
    line-height: var(--mud-typography-subtitle1-lineheight);
    text-decoration: none;
}

.kaa-game-finder-player-link:hover {
    text-decoration: underline;
}

.kaa-styleguide-rank {
    font-family: var(--mud-typography-h5-family);
    font-size: var(--mud-typography-h5-size);
    line-height: var(--mud-typography-h5-lineheight);
    letter-spacing: var(--mud-typography-h5-letterspacing);
    font-synthesis: none;
    color: var(--mud-palette-text-secondary);
}

.kaa-styleguide-strong {
    color: var(--mud-palette-text-primary);
}

/* Label chip (527:5458): white pill with a dot in the color of the label. */
.kaa-label-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 10px;
    border: 1px solid var(--kaa-border-default);
    border-radius: var(--kaa-radius-full);
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-family: var(--kaa-font-body);
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
}

.kaa-label-chip-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    /* Without a colour of its own (the inline style), the brand colour. */
    background-color: var(--mud-palette-primary);
}

/* Dense: fits in a table row (22px high instead of 28px). */
.kaa-label-chip.kaa-label-chip-dense {
    gap: 4px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 16px;
}

.kaa-label-chip-dense .kaa-label-chip-dot {
    width: 6px;
    height: 6px;
}

/* Menus with an icon per item (KaaPlayerRowActionsMenu, ExportMenu). MudPopoverProvider renders the menu outside the component,
   so its scoped styles can't reach the menu items: the icon in the muted text color, Reflex Blue and bg-subtle on hover and
   keyboard focus (Figma Export menu item 1091:5632). */
.kaa-menu-popover .mud-menu-item {
    font-family: var(--kaa-font-body);
    font-size: 14px;
}

.kaa-menu-popover .mud-menu-item .mud-menu-item-icon {
    width: 18px;
    height: 18px;
    color: var(--mud-palette-text-secondary);
}

.kaa-menu-popover .mud-menu-item:not(.mud-disabled):hover,
.kaa-menu-popover .mud-menu-item:not(.mud-disabled):focus-visible {
    background-color: var(--kaa-bg-subtle);
    color: var(--mud-palette-primary);
}

.kaa-menu-popover .mud-menu-item:not(.mud-disabled):hover .mud-menu-item-icon,
.kaa-menu-popover .mud-menu-item:not(.mud-disabled):focus-visible .mud-menu-item-icon {
    color: var(--mud-palette-primary);
}

/* KaaPlayerRowActionsMenu (the ⋮ menu of the Analysis and Game Finder rows): a line between the groups. */
.kaa-row-actions-popover .mud-menu-item {
    gap: 10px;
}

/* On the watchlist: the filled star of the watchlist button and card, in the brand color. */
.kaa-row-actions-popover .kaa-row-actions-watchlist-on .mud-menu-item-icon {
    color: var(--mud-palette-primary);
}

.kaa-row-actions-popover .kaa-row-actions-watchlist-on .mud-menu-item-icon path {
    fill: currentColor;
}

.kaa-row-actions-popover .kaa-row-actions-divider {
    margin: 4px 0;
    border-color: var(--kaa-border-default);
}

.kaa-row-actions-popover .kaa-row-actions-note {
    font-style: italic;
}

/* ExportMenu (Figma Export menu 1091:5633): a 216px panel with radius-md and 36px items with radius-sm. */
.kaa-export-menu-popover {
    min-width: 216px;
    border: 1px solid var(--kaa-border-default);
    border-radius: var(--kaa-radius-md);
}

.kaa-export-menu-popover .kaa-export-menu-list {
    padding: 4px;
}

.kaa-export-menu-popover .mud-menu-item {
    gap: 12px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--kaa-radius-sm);
}
/* ---------- PNG-export van het fysiek profiel ----------
   kaaExport.elementToPng zet .is-exporting enkel op een kopie buiten beeld:
   op de pagina zelf is de header nooit zichtbaar. */
.physical-profile-export .export-only {
    display: none;
}

.physical-profile-export.is-exporting {
    padding: 24px;
    background-color: #ffffff;
}

.physical-profile-export.is-exporting .export-only {
    display: flex;
}

.physical-profile-export.is-exporting .export-hide {
    display: none !important;
}

.physical-profile-export-header {
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mud-palette-primary);
}

.physical-profile-export-header .export-player-name {
    font-family: var(--kaa-font-display);
    font-size: 32px;
    line-height: 1;
    text-transform: uppercase;
    font-synthesis: none;
    color: var(--mud-palette-text-primary);
}

.physical-profile-export-header .export-player-context {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}

.physical-profile-export-header .export-date {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.physical-profile-export.is-exporting .profile-sample {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Dashboard watchlist: native scroll arrows (Chrome / Edge); they disappear when there is nothing to scroll that way. */
.kaa-dashboard-watchlist-track {
    anchor-name: --watchlist-track;
}

.kaa-dashboard-watchlist-track::scroll-button(*) {
    position: absolute;
    position-anchor: --watchlist-track;
    width: 32px;
    height: 32px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 50%;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.kaa-dashboard-watchlist-track::scroll-button(left) {
    content: "‹" / "Previous players";
    position-area: left center;
    margin-right: 8px;
}

.kaa-dashboard-watchlist-track::scroll-button(right) {
    content: "›" / "Next players";
    position-area: right center;
    margin-left: 8px;
}

.kaa-dashboard-watchlist-track::scroll-button(*):disabled {
    visibility: hidden;
}
.kaa-multi-autocomplete.has-values input::placeholder {
    color: var(--mud-palette-text-primary); !important;
    opacity: 1 !important;
}
