/**
 * Design tokens MitCamper — fondamenta UI (Blocco 5)
 */
:root {
    --mc-primary: #FF7601;
    --mc-primary-hover: #FF9A42;
    --mc-primary-muted: rgba(255, 118, 1, 0.18);
    --mc-bg: #000000;
    --mc-bg-elevated: #141414;
    --mc-bg-overlay: rgba(0, 0, 0, 0.72);
    --mc-text: #ffffff;
    --mc-text-muted: rgba(255, 255, 255, 0.72);
    --mc-text-faint: rgba(255, 255, 255, 0.45);
    --mc-border: rgba(255, 255, 255, 0.12);
    --mc-success: #289914;
    --mc-warning: #F5C518;
    --mc-danger: #e53935;
    --mc-radius-sm: 8px;
    --mc-radius-md: 12px;
    --mc-radius-lg: 16px;
    --mc-radius-pill: 999px;
    --mc-space-xs: 4px;
    --mc-space-sm: 8px;
    --mc-space-md: 16px;
    --mc-space-lg: 24px;
    --mc-space-xl: 32px;
    --mc-font-body: "Agrandir", system-ui, -apple-system, sans-serif;
    --mc-font-display: "Agrandir Grand Heavy", "Agrandir", sans-serif;
    --mc-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --mc-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --mc-transition-fast: 0.15s ease;
    --mc-transition: 0.25s ease;
    /* Altezza tab bar mobile dockata (contenuto + safe area) */
    --mc-nav-mobile-h: calc(56px + env(safe-area-inset-bottom, 0px));
}

/* View Transitions — navigazione fluida tra pagine (Chrome/Safari 2024+) */
@view-transition {
    navigation: auto;
}

.navigation-bar {
    view-transition-name: app-nav;
}

::view-transition-old(app-nav),
::view-transition-new(app-nav) {
    animation-duration: 0.22s;
}

/* Skeleton loader uniforme */
.mc-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: mc-skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: var(--mc-radius-sm);
}

@keyframes mc-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Match insights — scheda profilo */
.match-insights {
    margin: var(--mc-space-md) 0 0;
    padding: var(--mc-space-sm) 0 0;
    background: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
}

.match-insights__title {
    font-family: var(--mc-font-display);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.38);
    margin: 0 0 8px;
}

.match-insights__list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    line-height: 1.42;
}

.match-insights__list li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 12px;
}

.match-insights__list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.22);
}

.match-insights__list li.match-insights__item--icon {
    padding-left: 0;
}

.match-insights__list li.match-insights__item--icon::before {
    content: none;
}

.match-insights__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.5);
    vertical-align: -0.1em;
}

.match-insights__ico i {
    font-size: 0.82em;
}

/* Icebreaker chips — chat (layout in chat.css) */
.chat-icebreaker-chip {
    appearance: none;
    border: 1px solid rgba(37, 211, 102, 0.55);
    background: linear-gradient(145deg, rgba(0, 100, 82, 0.96) 0%, rgba(0, 72, 60, 0.98) 100%);
    color: #f3f7f5;
    font-family: var(--mc-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform var(--mc-transition-fast), box-shadow var(--mc-transition-fast), border-color var(--mc-transition-fast), background var(--mc-transition-fast);
    text-align: left;
    width: 100%;
    max-width: min(248px, 76vw);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
    white-space: normal;
    word-break: break-word;
}

.chat-icebreaker-chip:hover,
.chat-icebreaker-chip:focus {
    border-color: rgba(37, 211, 102, 0.75);
    background: linear-gradient(145deg, rgba(0, 110, 90, 0.98) 0%, rgba(0, 82, 68, 1) 100%);
    box-shadow: 0 5px 16px rgba(0, 92, 75, 0.45);
    outline: none;
    transform: translateY(-1px);
}

.chat-icebreaker-chip:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: light) {
    :root {
        --mc-bg: #f7f7f8;
        --mc-bg-elevated: #ffffff;
        --mc-bg-overlay: rgba(255, 255, 255, 0.92);
        --mc-text: #111111;
        --mc-text-muted: rgba(0, 0, 0, 0.68);
        --mc-text-faint: rgba(0, 0, 0, 0.45);
        --mc-border: rgba(0, 0, 0, 0.1);
    }
}
