/* Content-Chef ist eine native Pepper-Arbeitsflaeche. Der bestehende
   Satelliten-Renderer liefert waehrend der Migration nur den Cockpit-Inhalt. */

.content-chef-entry {
    border-color: rgba(var(--insight-accent-rgb), 0.3);
    background: rgba(var(--insight-accent-rgb), 0.1);
    color: #ffe2a0;
}

.content-chef-entry:hover,
.content-chef-entry.active {
    border-color: rgba(var(--insight-accent-rgb), 0.5);
    background: rgba(var(--insight-accent-rgb), 0.18);
    color: #fff1c8;
}

.content-chef-entry-mark {
    display: inline-grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(var(--insight-accent-rgb), 0.48);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(var(--insight-accent-rgb), 0.24), rgba(217, 139, 31, 0.12));
    color: #ffe29a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.content-chef-native-screen {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 92% -12%, rgba(var(--insight-accent-rgb), 0.12), transparent 31%),
        rgba(9, 12, 23, 0.84);
}

.content-chef-native-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px clamp(16px, 3vw, 34px) 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 16, 30, 0.88);
    backdrop-filter: blur(16px);
}

.content-chef-native-heading {
    min-width: 0;
}

.content-chef-native-heading h1 {
    margin: 1px 0 0;
    overflow: hidden;
    color: #fff8e8;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-chef-native-kicker {
    color: #eeb94f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content-chef-native-back,
.content-chef-native-strategy {
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.content-chef-native-back:hover,
.content-chef-native-strategy:hover {
    border-color: rgba(var(--insight-accent-rgb), 0.36);
    background: rgba(var(--insight-accent-rgb), 0.12);
}

.content-chef-native-strategy {
    border-color: rgba(var(--system-accent-rgb), 0.32);
    background: rgba(var(--system-accent-rgb), 0.11);
    color: #d9efff;
}

.content-chef-native-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: min(660px, calc(100% - 32px));
    min-width: 0;
    margin: 12px auto 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.content-chef-native-tabs button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text-secondary);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.content-chef-native-tabs button:hover,
.content-chef-native-tabs button.active {
    border-color: rgba(var(--insight-accent-rgb), 0.32);
    color: #fff1c7;
    background: rgba(var(--insight-accent-rgb), 0.13);
}

.content-chef-native-content {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.content-chef-native-content > .sat-cc-shell {
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    margin-inline: auto;
}

.content-chef-native-loading,
.content-chef-native-error {
    width: min(680px, calc(100% - 32px));
    margin: 28px auto;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.content-chef-native-error {
    border-color: rgba(239, 68, 68, 0.34);
    color: #ffd1d1;
}

.content-chef-native-content .sat-cc-content,
.content-chef-native-content .sat-cc-card,
.content-chef-native-content .sat-cc-panel,
.content-chef-native-content .sat-cc-briefing,
.content-chef-native-content .sat-cc-executive-item {
    min-width: 0;
}

@media (max-width: 980px) {
    .content-chef-entry .header-action-label {
        display: none;
    }
}

@media (max-width: 768px) {
    #content-chef-btn {
        display: none !important;
    }

    #mobile-bottom-nav .mobile-content-chef-entry .content-chef-entry-mark {
        width: 22px;
        height: 22px;
        max-width: none;
        overflow: visible;
        border-radius: 7px;
        font-size: 9px;
        line-height: 1;
    }

    .mobile-content-chef-entry.active {
        border-color: rgba(var(--insight-accent-rgb), 0.34);
        background: rgba(var(--insight-accent-rgb), 0.12);
        color: #ffe5a6;
    }

    .content-chef-native-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }

    .content-chef-native-heading h1 {
        font-size: 20px;
    }

    .content-chef-native-back {
        min-height: 44px;
        padding-inline: 10px;
    }

    .content-chef-native-strategy {
        grid-column: 1 / -1;
        min-height: 44px;
    }

    .content-chef-native-tabs {
        width: calc(100% - 20px);
        margin-top: 9px;
    }

    .content-chef-native-tabs button {
        min-height: 44px;
        padding-inline: 5px;
        font-size: 10.5px;
        letter-spacing: -0.015em;
    }

    .content-chef-native-content {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
        scrollbar-gutter: auto;
    }
}

@media (max-width: 430px) {
    .content-chef-native-header {
        padding-inline: 10px;
    }

    .content-chef-native-back {
        font-size: 12px;
    }

    .content-chef-native-kicker {
        font-size: 9px;
    }

    .content-chef-native-tabs {
        width: calc(100% - 16px);
        gap: 3px;
        padding: 3px;
    }
}

@media (max-width: 340px) {
    .content-chef-native-heading h1 {
        font-size: 18px;
    }

    .content-chef-native-tabs button {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-chef-native-content {
        scroll-behavior: auto;
    }
}
