/* ============================================
   LLM Models List 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;
}

/* Page Header */
.models-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: clamp(2rem, 5vw, 4rem) 1rem;
    text-align: center;
    color: #fff;
}

.models-header .container {
    max-width: 900px;
    margin: 0 auto;
}

.models-header .page-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.models-header .page-title i {
    color: #6366f1;
}

.models-header .page-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Stats Badges */
.models-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-badge .stat-count {
    font-weight: 700;
    color: #fff;
}

.stat-badge .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-badge.arch-standard {
    border-left: 3px solid #10b981;
}

.stat-badge.arch-mla {
    border-left: 3px solid #f59e0b;
}

.stat-badge.arch-moe {
    border-left: 3px solid #8b5cf6;
}

.stat-badge.arch-hybrid {
    border-left: 3px solid #ec4899;
}

/* Filter Section */
.models-filter-section {
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-wrapper input::placeholder {
    color: #9ca3af;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.filter-tab.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.filter-tab .count {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.1);
}

.filter-tab.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* Models Grid Section */
.models-grid-section {
    padding: clamp(1.5rem, 4vw, 3rem) 1rem;
    background: #f8fafc;
    min-height: 50vh;
}

.models-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
}

/* Model Card */
.model-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.model-card-link {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.arch-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #e5e7eb;
    color: #374151;
}

.arch-badge.arch-standard {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.arch-badge.arch-mla {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.arch-badge.arch-moe {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

.arch-badge.arch-hybrid {
    background: rgba(236, 72, 153, 0.15);
    color: #db2777;
}

.params-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
}

.model-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

/* Model Specs Preview */
.model-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.spec-item .spec-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item .spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.model-footer {
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.view-details {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-card:hover .view-details i {
    transform: translateX(4px);
}

.view-details i {
    transition: transform 0.2s;
}

/* No Models / No Results */
.no-models,
.no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #9ca3af;
    text-align: center;
}

.no-models i,
.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-models p,
.no-results p {
    font-size: 1rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: clamp(2rem, 5vw, 4rem) 1rem;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem 0;
}

.cta-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem 0;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    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) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        max-width: none;
    }

    .filter-tabs {
        justify-content: center;
    }

    .models-stats {
        flex-direction: column;
        align-items: center;
    }

    .model-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}