/* Model Selection Interface Styles */

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.model-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.model-card.placeholder {
    background: #f9fafb;
    cursor: default;
    opacity: 0.7;
}

.model-card.placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

.model-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.model-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.model-card-content h3 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.model-card-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.launch-model-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-family: Georgia, serif;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.launch-model-btn:hover {
    background: #1d4ed8;
}

.model-card.placeholder .launch-model-btn {
    display: none;
}

/* Back Button */
.back-button {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-family: Georgia, serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 0 2rem 0;
    display: inline-block;
}

.back-button:hover {
    background: #2563eb;
    color: white;
}

/* Model Container */
.model-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .models-grid {
        grid-template-columns: 1fr;
    }

    .back-button {
        margin: 1rem auto;
        display: block;
        width: fit-content;
    }
}

@media (max-width: 600px) {
    .model-card {
        padding: 1.5rem;
    }

    .model-card-icon {
        font-size: 2.5rem;
    }

    .model-card-content h3 {
        font-size: 1.25rem;
    }
}
