/* Models Page Specific Styles */

.page-header {
    margin-bottom: 24px;
}

.page-title-section {
    max-width: 760px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.title-icon {
    font-size: 28px;
    color: #ff8c42;
}

.page-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #888;
}

.models-section {
    margin-bottom: 24px;
}

.models-table-card {
    overflow: hidden;
}

.models-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid #f0dfcf;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 36px rgba(63, 40, 22, 0.06);
}

.models-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

.models-table th,
.models-table td {
    padding: 18px 20px;
    text-align: left;
    white-space: nowrap;
}

.models-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #fff1e3 0%, #ffebda 100%);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8c5f43;
    border-bottom: 1px solid #ecd6c4;
}

.models-table th:first-child {
    border-top-left-radius: 24px;
}

.models-table th:last-child {
    border-top-right-radius: 24px;
}

.models-table td {
    font-size: 14px;
    color: #3f3024;
    border-bottom: 1px solid #f3e4d8;
    vertical-align: middle;
}

.models-table tbody tr:last-child td {
    border-bottom: 0;
}

.models-table tbody tr {
    transition: background-color 0.22s ease;
}

.models-table tbody tr:nth-child(even) {
    background: rgba(255, 140, 66, 0.03);
}

.models-table tbody tr:hover {
    background: #fff5ec;
}

.models-table tbody tr.is-featured {
    background: linear-gradient(90deg, rgba(255, 140, 66, 0.12) 0%, rgba(255, 244, 234, 0.72) 42%, rgba(255, 255, 255, 0) 100%);
}

.model-cell {
    min-width: 240px;
}

.model-name {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 140, 66, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff5ec 0%, #fffdfb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    color: #7b4a26;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.price-cell {
    min-width: 140px;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 92px;
    padding: 8px 12px;
    border: 1px solid #efdfd1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(63, 40, 22, 0.04);
    color: #3f3024;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.price-cell.cached .price-tag {
    background: #fffaf4;
    color: #8b694f;
    border-color: #f1e4d7;
}

.price-cell.output .price-tag {
    background: linear-gradient(180deg, #fff1e4 0%, #ffe6d1 100%);
    border-color: #f2cdaa;
    color: #8a451a;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .models-table-wrap {
        border-radius: 20px;
    }

    .models-table th,
    .models-table td {
        padding: 14px 14px;
    }

    .models-table {
        min-width: 640px;
    }

    .model-cell {
        min-width: 210px;
    }

    .price-cell {
        min-width: 120px;
    }

    .price-tag {
        min-width: 80px;
    }
}

@media (prefers-color-scheme: dark) {
    .page-title {
        color: #f2ebe4;
    }

    .page-subtitle {
        color: #bdaea1;
    }

    .models-table-wrap {
        border-color: #3a2f29;
        background: linear-gradient(180deg, #221b17 0%, #1b1714 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 36px rgba(0, 0, 0, 0.24);
    }

    .models-table th {
        background: linear-gradient(180deg, #33271f 0%, #2a211c 100%);
        color: #c8aa90;
        border-bottom-color: #3f3129;
    }

    .models-table td {
        border-bottom-color: #342b26;
        color: #f2ebe4;
    }

    .models-table tbody tr:nth-child(even) {
        background: rgba(255, 140, 66, 0.05);
    }

    .models-table tbody tr:hover {
        background: #2c241f;
    }

    .models-table tbody tr.is-featured {
        background: linear-gradient(90deg, rgba(255, 140, 66, 0.18) 0%, rgba(47, 33, 24, 0.72) 42%, rgba(30, 30, 30, 0) 100%);
    }

    .model-name {
        background: linear-gradient(180deg, #31261f 0%, #241d18 100%);
        border-color: rgba(255, 140, 66, 0.2);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        color: #ffd4b5;
    }

    .price-tag {
        background: #26211d;
        border-color: #3f3128;
        box-shadow: none;
        color: #f2ebe4;
    }

    .price-cell.cached .price-tag {
        background: #2b241f;
        border-color: #40342b;
        color: #c8aa90;
    }

    .price-cell.output .price-tag {
        background: linear-gradient(180deg, #473322 0%, #3d2b1d 100%);
        border-color: #6a4933;
        color: #ffd4b0;
    }
}
