/* ===== DJANGO MODELS CARD LAYOUT ===== */

/* Models container */
.models-container {
    max-width: 100%;
    margin: 0 auto;
}

/* App header styling */
.app-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--accent-primary);
}

/* App description styling */
.app-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Model cards grid */
.model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Individual model card */
.model-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
    text-decoration: none;
    color: var(--text-primary);
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-card:hover::before {
    opacity: 1;
}

/* Model header */
.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.model-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.model-header h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.model-header h3 a:hover {
    color: var(--accent-primary);
}

/* Model badge */
.model-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark mode adjustments for model cards */
[data-md-color-scheme="slate"] .model-card {
    background: var(--md-code-bg-color);
    border-color: var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .model-card:hover {
    border-color: var(--md-primary-fg-color);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="slate"] .app-description {
    color: var(--md-default-fg-color--light);
    border-color: var(--md-default-fg-color--lightest);
}
