/* ===============================
   EXPLORE SEARCH (usa filters-advanced do index.css)
================================ */

/* ===============================
   SUBJECTS GRID
================================ */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 968px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .subjects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   SUBJECT CARD
================================ */
.subject-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.subject-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.subject-card-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.subject-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
}

.subject-card-image svg {
    width: 64px;
    height: 64px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    z-index: 1;
    position: relative;
}

.subject-card-content {
    flex: 1;
    padding: 20px;
}

.subject-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.subject-card-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.subject-card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.subject-card-stat svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.subject-card-stat-value {
    font-weight: 600;
    color: var(--text);
}

/* ===============================
   EXERCISES LIST CONTAINER
================================ */
.exercises-list-container {
    margin-top: 32px;
}

.exercises-list-container.hidden {
    display: none;
}

.exercises-list-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.exercises-list-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.exercises-list-header .btn-outline {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===============================
   EXERCISES LIST (usa exercise-list do exercises.css)
================================ */

/* ===============================
   EMPTY STATE
================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
}

/* ===============================
   LOADING STATE
================================ */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

