/* استایل‌های اصلی افزونه دوره‌ها */

/* کارت دوره */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card img {
    transition: transform 0.5s ease;
}

.course-card:hover img {
    transform: scale(1.05);
}

/* Badge وضعیت */
.badge-upcoming { background: #3b82f6; color: white; }
.badge-ongoing { background: #10b981; color: white; }
.badge-finished { background: #6b7280; color: white; }
.badge-archive { background: #f59e0b; color: white; }

/* فیلترها */
.courses-filters select {
    cursor: pointer;
}

.courses-filters select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* پagination */
.courses-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s;
}

.courses-pagination .page-numbers:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.courses-pagination .current {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

/* صفحه تکی دوره */
.course-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.course-meta-item:last-child {
    border-bottom: none;
}

.course-meta-item svg {
    flex-shrink: 0;
}

/* سرفصل‌ها */
.course-heading-item {
    border-left: 3px solid #10b981;
    padding-left: 16px;
    margin-bottom: 16px;
}

.course-heading-item:hover {
    border-left-color: #059669;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .course-card {
        margin-bottom: 24px;
    }
    
    .courses-filters {
        padding: 16px;
    }
    
    .course-meta-item {
        padding: 8px 0;
    }
}

/* کلاس‌های کمکی */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* دکمه‌ها */
.btn-primary {
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: white;
    color: #10b981;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #10b981;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}