/* Training Courses Tab Styles */

/* Course Cards Grid */
.safetyhub-courses-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .safetyhub-courses-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .safetyhub-courses-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Course Card */
.course-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Course Header */
.course-header {
    position: relative;
    height: 8rem;
    background: linear-gradient(135deg, #E91E8C 0%, #F05A28 100%);
}

/* Course Content */
.course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card:hover .course-title {
    color: #DE007D;
}

/* Course Meta */
.course-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.course-level-badge,
.course-duration-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #64748b;
}

/* Status Badge */
.course-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Course Actions */
.course-actions {
    margin-top: auto;
}

.course-register-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(to right, #DE007D, #F05A28);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-register-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(222, 0, 125, 0.3);
}

.course-register-btn-disabled {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 600;
    cursor: not-allowed;
}

/* Category Pills */
.course-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-category-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.course-category-pill.active {
    background: linear-gradient(to right, #DE007D, #F05A28);
    color: white;
    border-color: transparent;
}

/* Loading State */
.safetyhub-courses-loading {
    padding: 3rem;
    text-align: center;
}

/* Empty State */
.safetyhub-courses-empty {
    padding: 4rem 1rem;
    text-align: center;
}

/* Pagination */
.pagination-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #1e293b;
}

.pagination-btn.pagination-active {
    background: linear-gradient(to right, #DE007D, #F05A28);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 640px) {
    .course-card {
        margin-bottom: 1rem;
    }

    .course-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
