/* Universal Test Card Styles */
.sc-test-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sc-test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sc-card-header {
    padding: 16px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.sc-category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-difficulty-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-difficulty-beginner {
    background: #d1fae5;
    color: #065f46;
}

.sc-difficulty-intermediate {
    background: #fef3c7;
    color: #92400e;
}

.sc-difficulty-advanced {
    background: #fee2e2;
    color: #991b1b;
}

.sc-card-content {
    padding: 16px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sc-test-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.sc-test-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sc-test-link:hover {
    color: #667eea;
}

.sc-test-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.sc-test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.sc-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.sc-meta-item i {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Icon placeholders using CSS */
.sc-icon-questions::before {
    content: "❓";
    font-size: 14px;
}

.sc-icon-time::before {
    content: "⏱️";
    font-size: 14px;
}

.sc-icon-users::before {
    content: "👥";
    font-size: 14px;
}

.sc-test-stats {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.sc-avg-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-score-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.sc-score-value {
    color: #059669;
    font-size: 14px;
    font-weight: 700;
}

.sc-card-footer {
    padding: 0 20px 20px;
}

.sc-start-test-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-start-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Grid layouts for different contexts */
.sc-tests-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.sc-tests-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.sc-tests-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sc-tests-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sc-test-card {
        border-radius: 8px;
    }
    
    .sc-card-header,
    .sc-card-content,
    .sc-card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .sc-test-title {
        font-size: 16px;
    }
    
    .sc-test-meta {
        gap: 12px;
    }
    
    .sc-tests-grid {
        gap: 16px;
    }
    
    .sc-tests-grid-2,
    .sc-tests-grid-3,
    .sc-tests-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Section headers */
.sc-section-header {
    margin-bottom: 24px;
}

.sc-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.sc-section-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Category list styles */
.sc-categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.sc-category-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1f2937;
}

.sc-category-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #667eea;
}

.sc-category-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sc-category-count {
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 768px) {
    .sc-categories-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .sc-category-item {
        padding: 12px;
    }
}
