/* Header Styles */


.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #003366, #004080);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

.logo-text p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Main Content */
.main {
    padding: 6rem 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #003366, #004080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filter Buttons */
.filter-section {
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #003366;
    color: #003366;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #003366;
    border-color: #003366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Model Cards */
.model-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    overflow: hidden;
}

.model-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #003366;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.02), rgba(212, 175, 55, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-card:hover::before {
    opacity: 1;
}

/* Recommended Badge */
.recommended-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0 1rem 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.star {
    font-size: 0.75rem;
}

/* Provider Logos */
.provider-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.openai-logo {
    /* background: linear-gradient(135deg, #10b981, #059669); */
    background-image: url(../images/gpt-35.webp);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;


    background-color: transparent;
}

.google-logo {
    /* background: linear-gradient(135deg, #3b82f6, #2563eb); */

    background-image: url(../images/gemini.png);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;


    background-color: transparent;
}

.anthropic-logo {
    /* background: linear-gradient(135deg, #f97316, #ea580c); */
    background-image: url(../images/claude.webp);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;


    background-color: transparent;
}

.deepseek-logo {
    /* background: linear-gradient(135deg, #8b5cf6, #7c3aed); */

    background-image: url(../images/deepseek.png);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;


    background-color: transparent;
}

.xai-logo {
    /* background: linear-gradient(135deg, #ef4444, #dc2626); */


    background-image: url(../images/grok.png);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;


    background-color: transparent;
}

.microsoft-logo {
    background: linear-gradient(135deg, #153338, #091a1f);
}

.mistral-logo {
    /* background: linear-gradient(135deg, #eab308, #ca8a04); */
    background-image: url(../images/mistralai.png);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;


    background-color: transparent;
}

/* Model Info */
.model-info {
    text-align: center;
    position: relative;
    z-index: 1;
}

.model-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.model-card:hover .model-name {
    color: #003366;
}

.provider-name {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    margin-top: 5rem;
}

.footer-content {
    padding: 2rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-content p:first-child {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }

    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .main-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .main-subtitle {
        font-size: 1.125rem;
    }

    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .model-card {
        padding: 1.25rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .model-card {
        padding: 1rem;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .main-subtitle {
        font-size: 1rem;
    }

    .provider-logo {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.75rem;
    }

    .model-name {
        font-size: 1rem;
    }

    .provider-name {
        font-size: 0.8rem;
    }
}


/* ================================================= */
/* === STYLES FOR NEW "QUICK LOOK" & TAGS FEATURES === */
/* ================================================= */

/* --- 1. Adjustments to the main model-card --- */

.model-card {
    /* Height is set for a consistent design. Adjust if needed. */
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Positions top content and tags at opposite ends */
}


/* --- 2. Styling for the Static (Always Visible) Info --- */

/* The wrapper for the logo and text */
.card-top-content {
    /* We no longer need a transition here as it's not moving */
}

.model-info-static {
    text-align: center;
    /* MODIFIED: We are now transitioning opacity, not transform */
    transition: opacity 0.3s ease;
}

/* =============================================================== */
/* === CHANGE: Instead of moving the text up, we fade it out === */
/* =============================================================== */
.model-card:hover .model-info-static {
    opacity: 0;
    pointer-events: none;
    /* Make it unclickable while invisible */
}

/* This old rule that moved the content up is now REMOVED.
.model-card:hover .card-top-content {
    transform: translateY(-50px);
}
*/
/* ======================== */
/* === END OF THE CHANGE === */
/* ======================== */


/* --- 3. Styling for the "Quick Look" Slide-Up Panel (NO CHANGES HERE) --- */
.quick-look-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-top: 1px solid #f0f0f0;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #475569;
    font-size: 0.8rem;
    text-align: left;
}

.model-card:hover .quick-look-panel {
    transform: translateY(0);
}

.quick-look-panel .summary {
    font-size: 0.8rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    border-left: 3px solid #003366;
    padding-left: 0.75rem;
}

.quick-look-panel .details {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.quick-look-panel .detail-item {
    display: flex;
    flex-direction: column;
}

.quick-look-panel .detail-item span {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.quick-look-panel .detail-item strong {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}


/* --- 4. Styling for the "Use Case" Tags (NO CHANGES HERE) --- */
.use-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.model-card:hover .use-case-tags {
    opacity: 0;
    pointer-events: none;
}

.tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 0.75rem;
}

/* Color variations for tags */
.tag-blue {
    background-color: #e0f2fe;
    color: #0c4a6e;
}

.tag-green {
    background-color: #dcfce7;
    color: #166534;
}

.tag-purple {
    background-color: #f3e8ff;
    color: #581c87;
}

.tag-orange {
    background-color: #fff7ed;
    color: #7c2d12;
}