/* Detail Page Styles - Based on Figma Design */

/* CSS Variables matching Figma design tokens */
:root {
    --surface-ground: #ffffff;
    --surface-basement: #f1f1f1;
    --surface-trench: #e1e1e1;
    --border-default: #e1e1e1;
    --border-strong: #a4abb1;
    --text-primary: #121213;
    --text-secondary: #686c7c;
    --text-decor: #005dd0;
    --interaction-primary: #005dd0;
}

/* Detail Page Container */
.detail-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Content Header - Sticky below global header */
.detail-header {
    position: sticky;
    top: 60px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px;
    height: 60px;
    background: var(--surface-ground);
    border-bottom: 1px solid var(--border-default);
}

.detail-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

/* Back Button */
.detail-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.detail-back-btn:hover {
    background-color: var(--surface-basement);
}

.detail-back-btn img {
    width: 16px;
    height: 17px;
}

/* Header Title */
.detail-title {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: normal;
    color: var(--text-primary);
    margin: 0;
}

/* Header Subtitle (Vendor) */
.detail-subtitle {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: var(--text-secondary);
    margin: 0;
}

/* Main Content Area */
.detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 40px;
    overflow-x: hidden;
}

/* Specs Card - Basic info table */
.detail-specs-card {
    background: var(--surface-ground);
    border-radius: 6px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
}

.detail-specs-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 16px;
    min-height: 32px;
    border-radius: 6px;
}

.detail-specs-row:nth-child(even) {
    background: var(--surface-basement);
}

.detail-specs-label {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
    color: var(--text-primary);
    width: 200px;
    flex-shrink: 0;
}

.detail-specs-divider {
    width: 0;
    min-height: 24px;
    align-self: stretch;
    border-left: 1px solid var(--border-default);
}

.detail-specs-value {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--text-primary);
    flex: 1;
}

.detail-specs-value-eol {
    color: #c62828;
}

/* Comments/Text Card */
.detail-text-card {
    background: var(--surface-ground);
    border-radius: 6px;
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-card-title {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 21px;
    color: var(--text-primary);
    margin: 0;
}

.detail-card-content {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: var(--text-primary);
    margin: 0;
}

/* Section Title */
.detail-section-title {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

/* Accordion Container */
.detail-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Accordion Item */
.detail-accordion-item {
    background: var(--surface-ground);
    border-radius: 6px;
}

/* Accordion Header */
.detail-accordion-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    cursor: pointer;
}

.detail-accordion-header:hover {
    background: #f5f5f5;
    border-radius: 6px;
}

.detail-accordion-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

/* Accordion Arrow Button */
.detail-accordion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.detail-accordion-arrow img {
    width: 16px;
    height: 17px;
    transition: transform 0.2s;
}

.detail-accordion-item.expanded .detail-accordion-arrow img {
    transform: rotate(90deg);
}

/* Accordion Title */
.detail-accordion-title {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: var(--text-primary);
    flex: 1;
    margin: 0;
}

/* View Link Button */
.detail-view-link {
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: normal;
    color: var(--interaction-primary);
    text-transform: uppercase;
    text-decoration: none;
}

@media (max-width: 768px) {
    .detail-view-link {
        margin-left: 0;
        margin-top: 8px;
    }
}

.detail-view-link:hover {
    background: rgba(0, 93, 208, 0.08);
    text-decoration: none;
    color: var(--interaction-primary);
}

/* Accordion Content/Table */
.detail-accordion-content {
    display: none;
    padding: 0 16px 8px 16px;
}

.detail-accordion-item.expanded .detail-accordion-content {
    display: block;
}

/* Detail Table */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.detail-table thead {
    border-bottom: 1px solid var(--border-strong);
}

.detail-table th {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
    color: var(--text-primary);
    padding: 8px 16px;
    text-align: left;
    height: 32px;
}

.detail-table td {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--text-primary);
    padding: 8px 16px;
    height: 40px;
}

.detail-table tbody tr:nth-child(even) {
    background: var(--surface-trench);
    border-radius: 6px;
}

/* Links Card */
.detail-links-card {
    background: var(--surface-ground);
    border-radius: 6px;
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-link {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: var(--text-decor);
    text-decoration: underline;
}

.detail-link:hover {
    color: var(--interaction-primary);
}

/* Support Table (inline in specs) */
.detail-support-table {
    background: var(--surface-ground);
    border-radius: 6px;
    padding: 8px 16px;
}

.detail-support-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.detail-support-table thead {
    border-bottom: 1px solid var(--border-strong);
}

.detail-support-table th {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
    color: var(--text-primary);
    padding: 8px 16px;
    text-align: left;
    height: 32px;
}

.detail-support-table td {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--text-primary);
    padding: 8px 16px;
    height: 40px;
}

.detail-support-table tbody tr:nth-child(even) {
    background: var(--surface-basement);
    border-radius: 6px;
}

@media (max-width: 768px) {
    .detail-header {
        padding: 16px;
    }

    .detail-content {
        padding: 16px;
    }

    .detail-specs-card {
        padding: 8px 12px;
    }

    .detail-specs-row {
        gap: 12px;
        padding: 8px 12px;
    }

    .detail-specs-label {
        width: 120px;
    }

    .detail-specs-value {
        min-width: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    table.detail-table-stacked-mobile thead {
        display: none;
    }

    table.detail-table-stacked-mobile,
    table.detail-table-stacked-mobile tbody,
    table.detail-table-stacked-mobile tr,
    table.detail-table-stacked-mobile td {
        display: block;
        width: 100%;
    }

    table.detail-table-stacked-mobile tr {
        border: 1px solid var(--border-default);
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 8px 12px;
        background: var(--surface-ground);
    }

    table.detail-table-stacked-mobile td {
        border: none;
        padding: 6px 0;
        position: relative;
        padding-left: 48%;
        min-height: 24px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        box-sizing: border-box;
        max-width: 100%;
    }

    table.detail-table-stacked-mobile td[data-label="CPU Family"] {
        word-break: break-all;
    }

    table.detail-table-stacked-mobile td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 44%;
        font-weight: 700;
        white-space: normal;
        color: var(--text-primary);
    }

    .post-date-col {
        display: none !important;
    }

    .vfs-col {
        display: none !important;
    }

    .max-vgpu-col {
        display: none !important;
    }
}
