/* ==========================================================================
   Index page specific styles
   ========================================================================== */

/* Index-specific header (centered) */
.header {
    text-align: center;
    margin-bottom: 40px;
    min-height: 150px; /* Prevent layout shift */
}

.header-logo {
    width: min(360px, 92vw);
    height: auto;
    min-height: 100px; /* Reserve space while loading */
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.header .tagline {
    color: #4c4c4c;
    font-size: 18px;
    font-weight: 400;
}

/* Models grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Model card */
.model-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #0a0a0a;
}

.model-icon {
    width: 64px;
    height: 64px;
    background: #f3f3f3;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.model-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.model-thumbnail {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.model-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0a0a0a;
}

.model-card p {
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.model-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #8a8a8a;
}

.model-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 36px;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }
}
