/* ============================================
   LLM Model Detail Page Styles
   ============================================ */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.breadcrumb-nav .container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-list li a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list li a:hover {
    color: #212529;
}

.breadcrumb-list li[aria-current="page"] {
    color: #212529;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #adb5bd;
    font-size: 0.7rem;
}

/* Model Header Section */
.model-header-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: clamp(1.5rem, 4vw, 3rem) 1rem;
    color: #fff;
}

.model-header-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

.model-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.model-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.model-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arch-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.arch-badge.arch-standard {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.arch-badge.arch-mla {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.arch-badge.arch-moe {
    background: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.arch-badge.arch-hybrid {
    background: rgba(236, 72, 153, 0.25);
    color: #f9a8d4;
}

.params-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.model-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-subtitle i {
    color: #facc15;
}

/* Specifications Section */
.specs-section {
    padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
    background: #fff;
}

.specs-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.specs-section h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specs-section h2 i {
    color: #6366f1;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.spec-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.spec-card.spec-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.spec-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 1rem;
}

.spec-highlight .spec-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.spec-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

/* VRAM Section */
.vram-section {
    padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
    background: #f8fafc;
}

.vram-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.vram-section h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vram-section h2 i {
    color: #6366f1;
}

.section-intro {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

/* VRAM Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.vram-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.vram-table th,
.vram-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.vram-table th {
    background: #1f2937;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.vram-table th:first-child {
    border-radius: 11px 0 0 0;
}

.vram-table th:last-child {
    border-radius: 0 11px 0 0;
}

.vram-table th.context-col {
    text-align: center;
}

.vram-table tbody tr {
    transition: background-color 0.15s ease;
}

.vram-table tbody tr:hover {
    background: #f8fafc;
}

.vram-table tbody tr:last-child td {
    border-bottom: none;
}

.vram-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 11px;
}

.vram-table tbody tr:last-child td:last-child {
    border-radius: 0 0 11px 0;
}

/* Quantization Cell */
.quant-cell {
    white-space: nowrap;
}

.quant-cell strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
}

.bpw-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

/* VRAM Cells */
.vram-cell {
    text-align: center;
    white-space: nowrap;
}

.total-vram {
    display: block;
    font-weight: 600;
    color: #1f2937;
}

.kv-breakdown {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

/* VRAM Note */
.vram-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background: #fefce8;
    border-radius: 8px;
    border: 1px solid #fef08a;
}

.vram-note i {
    color: #ca8a04;
    margin-top: 0.125rem;
}

.vram-note p {
    font-size: 0.9rem;
    color: #854d0e;
    margin: 0;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: clamp(2rem, 5vw, 3rem) 1rem;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.cta-content p {
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.25rem 0;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-btn.primary {
    background: #6366f1;
    color: #fff;
}

.cta-btn.primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .model-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vram-table {
        font-size: 0.8rem;
    }

    .vram-table th,
    .vram-table td {
        padding: 0.625rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .vram-table th,
    .vram-table td {
        padding: 0.5rem;
    }
}