/*
  File: SDAI_Results.css
  Purpose: Placeholder styling for result summaries, model cards, and compare views.
  Architecture Role: Supports result-oriented renderers while keeping styling decoupled from screen widgets.
  Expected Collaborators: SDAI_RenderResultsSummary.js, SDAI_RenderModelResults.js, SDAI_RenderTrimCompare.js, and SDAI_RenderFeatureMatrix.js.
  Scaffold Status: Scaffold/template only; final result visual design is TODO.
*/
#SDAI_ChatAIPage .sdai-result-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-content: start;
}

#SDAI_ChatAIPage .sdai-result-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--sdai-color-border);
    border-radius: 18px;
    background: var(--sdai-color-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

#SDAI_ChatAIPage .sdai-result-card__media {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#SDAI_ChatAIPage .sdai-result-card__media-button {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #d9e6ec, #eef3f8);
    overflow: hidden;
    cursor: pointer;
}

#SDAI_ChatAIPage .sdai-result-card__media-button--disabled {
    cursor: default;
}

#SDAI_ChatAIPage .sdai-result-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#SDAI_ChatAIPage .sdai-result-card__image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    text-align: center;
    color: var(--sdai-color-text-soft);
    font-weight: 600;
    background: linear-gradient(135deg, #eef3f8, #dde8ef);
}

#SDAI_ChatAIPage .sdai-result-card__eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sdai-color-primary);
}

#SDAI_ChatAIPage .sdai-result-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

#SDAI_ChatAIPage .sdai-result-card__title {
    margin: 0;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.2;
}

#SDAI_ChatAIPage .sdai-result-card__summary {
    margin: 0;
    color: var(--sdai-color-text-soft);
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 600;
    text-align: center;
}

#SDAI_ChatAIPage .sdai-result-card__detail {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 48%);
    column-gap: 4%;
    align-items: start;
}

#SDAI_ChatAIPage .sdai-result-card__detail-label {
    color: var(--sdai-color-text-soft);
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 700;
    text-align: right;
}

#SDAI_ChatAIPage .sdai-result-card__detail-value {
    text-align: left;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 600;
}

#SDAI_ChatAIPage .sdai-result-spacer {
    min-height: 1px;
}

.sdai-result-modal-open {
    overflow: hidden;
}

#SDAI_ChatAIPage .sdai-result-modal,
.sdai-result-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
}

#SDAI_ChatAIPage .sdai-result-modal__image,
.sdai-result-modal__image {
    display: block;
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
    background: #ffffff;
}

@media (max-width: 1280px) {
    #SDAI_ChatAIPage .sdai-result-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    #SDAI_ChatAIPage .sdai-result-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #SDAI_ChatAIPage .sdai-result-list {
        grid-template-columns: 1fr;
    }
}
