/* ============================================
   User Progress Page - Dark Theme
   ============================================ */

/* Base Styles */
body.single-user-progress {
    background: #0a0a0a;
    color: #ffffff;
}

.progress-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Page Header */
.progress-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.progress-page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.progress-page-header h1 .dashicons {
    font-size: 42px;
    width: 42px;
    height: 42px;
    color: #00d4aa;
}

.progress-page-header .subtitle {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* Stats Cards */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #3a3a3a;
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4aa 0%, #4dd4ac 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.completed {
    background: linear-gradient(135deg, #00d4aa 0%, #00a880 100%);
}

.stat-icon.in-progress {
    background: linear-gradient(135deg, #f0b849 0%, #d4a93d 100%);
}

.stat-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: white;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
}

/* Courses List */
.courses-progress-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: #00d4aa;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.15);
}

.course-thumbnail {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.completion-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #00d4aa;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.completion-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.course-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.course-title a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #00d4aa;
}

.progress-info {
    flex: 1;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.completed-count {
    color: #999;
}

.percentage {
    font-weight: 600;
    color: #00d4aa;
}

.progress-bar-wrapper {
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa 0%, #4dd4ac 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Course Actions */
.course-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #00d4aa 0%, #4dd4ac 100%);
    color: #333 !important;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e0b8 0%, #5be0ba 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.35);
    color: #333 !important;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: #2a2a2a;
    color: #ffffff !important;
    border: 1px solid #3a3a3a;
}

.btn-secondary:hover {
    background: #333333;
    border-color: #00d4aa;
    color: #ffffff !important;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: #999 !important;
    border: 1px solid #3a3a3a;
}

.btn-outline:hover {
    border-color: #00d4aa;
    color: #00d4aa !important;
    background: rgba(0, 212, 170, 0.05);
}

/* Button Icons */
.btn-primary .dashicons,
.btn-secondary .dashicons,
.btn-outline .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* No Courses */
.no-courses {
    background: #1a1a1a;
    border: 2px dashed #2a2a2a;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}

.no-courses .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #3a3a3a;
    margin-bottom: 20px;
}

.no-courses p {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

.no-courses .btn-primary {
    display: inline-flex;
}

/* Responsive */
@media (max-width: 1024px) {
    .progress-page-container {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .progress-page-header h1 {
        font-size: 32px;
    }

    .progress-page-header h1 .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }

    .progress-stats {
        grid-template-columns: 1fr;
    }

    .course-card {
        flex-direction: column;
    }

    .course-thumbnail {
        flex: 0 0 200px;
    }

    .course-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .progress-page-header h1 {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 28px;
    }
}
