/**
 * Tarjeta de materia y estados de resaltado
 */

.subject-card {
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition:
        transform 0.15s,
        opacity 0.2s,
        box-shadow 0.2s;
    border: 2px solid transparent;
    position: relative;
    user-select: none;
}

.subject-card:hover {
    transform: translateY(-2px);
}

.subject-card .s-code {
    font-size: 0.65rem;
    font-family: "SF Mono", "Fira Code", monospace;
    opacity: 0.6;
    margin-bottom: 3px;
}

.subject-card .s-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.subject-card .s-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subject-card .s-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
}

.subject-card .s-grade {
    font-size: 1rem;
    font-weight: 800;
}

.subject-card .s-hours {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 4px;
}

/* Highlight states */
.subject-card.hl-selected {
    border-color: #f59e0b !important;
    box-shadow:
        0 0 0 1px #f59e0b,
        0 4px 16px #f59e0b33;
}

.subject-card.hl-prereq-d {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f633;
}

.subject-card.hl-prereq-i {
    border-color: #6366f1 !important;
    opacity: 0.85;
}

.subject-card.hl-dependent {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 1px #a855f733;
}

.subject-card.hl-dimmed {
    opacity: 0.22;
}
