/* ==========================================
   LEARNING PATHS STYLES
   ========================================== */

/* Hero */
.paths-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.paths-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 60px 60px;
    pointer-events: none;
}

.paths-hero .container { position: relative; z-index: 1; }

.paths-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.paths-hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Content Section */
.paths-content {
    padding: 48px 0 80px;
    background-color: var(--off-white);
}

.paths-main {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* Filter Sidebar */
.paths-filter-sidebar {
    position: sticky;
    top: 100px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.paths-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.paths-filter-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.paths-filter-clear {
    font-size: 12px;
    color: var(--primary-purple);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.paths-filter-clear:hover { text-decoration: underline; }

.paths-filter-group {
    margin-bottom: 18px;
}

.paths-filter-group:last-child { margin-bottom: 0; }

.paths-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.paths-filter-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: all 0.2s;
}

.paths-filter-select:focus {
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}

/* Grid */
.paths-grid-container {
    min-width: 0;
}

.paths-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.paths-grid-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.paths-grid-count {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Path Card */
.path-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border-color: var(--accent-purple);
}

.path-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0;
}

.path-card-emoji {
    font-size: 32px;
    line-height: 1;
}

.path-card-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
}

.path-card-level.level-beginner { background: #10B981; }
.path-card-level.level-intermediate { background: #F59E0B; }
.path-card-level.level-advanced { background: #DC2626; }

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

.path-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.path-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 8px;
}

.path-card-title a {
    color: inherit;
    transition: color 0.2s;
}

.path-card-title a:hover { color: var(--primary-purple); }

.path-card-description {
    font-size: 13.5px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.path-card-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.path-meta-item {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.path-meta-icon {
    font-size: 14px;
}

/* Progress Bar (shown when enrolled) */
.path-card-progress {
    margin-bottom: 14px;
}

.path-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 6px;
}

.path-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--success-green));
    border-radius: 20px;
    transition: width 0.6s ease;
}

.path-progress-text {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-gray);
}

/* Card Footer */
.path-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.path-enrolled-count {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.path-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-purple);
    transition: all 0.2s;
}

.path-card-link:hover {
    color: var(--primary-purple-dark);
    transform: translateX(3px);
}

/* Loading / Empty */
.paths-loading, .paths-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* ==========================================
   LEARNING PATH DETAILS PAGE
   ========================================== */

.path-detail-hero {
    background: linear-gradient(135deg, #1e0a3c 0%, #3b1578 40%, #7c3aed 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}

.path-detail-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(167,139,250,0.1) 0%, transparent 40%);
}

.path-detail-hero .container {
    position: relative;
    z-index: 1;
}

.path-detail-level {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    margin-bottom: 16px;
}

.path-detail-level.level-beginner { background: rgba(16,185,129,0.85); }
.path-detail-level.level-intermediate { background: rgba(245,158,11,0.85); }
.path-detail-level.level-advanced { background: rgba(220,38,38,0.85); }

.path-detail-category {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.path-detail-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 700px;
    letter-spacing: -0.5px;
}

.path-detail-description {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 24px;
}

.path-detail-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.path-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.path-stat-icon { font-size: 16px; }

.path-detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.path-enroll-btn {
    padding: 14px 32px;
    background: var(--white);
    color: var(--primary-purple);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.path-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.path-enroll-btn.enrolled {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.path-enroll-btn.completed-all {
    background: var(--success-green);
    color: var(--white);
}

/* Progress Section */
.path-progress-section {
    padding: 0;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.path-progress-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.path-progress-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.path-progress-bar-lg {
    height: 10px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
}

.path-progress-fill-lg {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--success-green));
    border-radius: 20px;
    transition: width 0.8s ease;
}

.path-progress-text-lg {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}

/* Curriculum Section */
.path-curriculum {
    padding: 48px 0 80px;
    background: var(--off-white);
}

.path-curriculum h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.path-prerequisites {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: #92400e;
    font-weight: 500;
}

.path-prerequisites strong {
    font-weight: 700;
}

.curriculum-list {
    max-width: 900px;
}

/* Curriculum Step */
.curriculum-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--border-color);
    transition: all 0.2s;
}

.curriculum-step:hover {
    box-shadow: var(--shadow-md);
}

.curriculum-step.step-completed {
    border-left-color: var(--success-green);
}

.curriculum-step.step-current {
    border-left-color: var(--primary-purple);
    box-shadow: 0 2px 8px rgba(124,58,237,0.12);
}

.curriculum-step.step-locked {
    opacity: 0.65;
}

.step-indicator {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--off-white);
    color: var(--text-gray);
    border: 2px solid var(--border-color);
}

.step-completed .step-indicator {
    background: var(--success-green);
    color: var(--white);
    border-color: var(--success-green);
}

.step-current .step-indicator {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
}

.step-action {
    flex-shrink: 0;
}

.step-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.step-btn-start {
    background: var(--primary-purple);
    color: var(--white);
}

.step-btn-start:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-1px);
}

.step-btn-view {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.step-btn-view:hover { background: #dcfce7; }

.step-btn-locked {
    background: var(--off-white);
    color: var(--text-light);
    cursor: default;
    border: 1px solid var(--border-color);
}

.step-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
}

.step-badge-completed {
    background: #dcfce7;
    color: #16a34a;
}

.step-badge-current {
    background: #ede9fe;
    color: #7c3aed;
}

/* Back link */
.back-to-paths {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    padding: 10px 18px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.back-to-paths:hover {
    color: var(--primary-purple);
    border-color: #c4b5fd;
    background: #f5f3ff;
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .paths-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .paths-hero { padding: 48px 0; }
    .paths-hero-title { font-size: 28px; }

    .paths-main {
        grid-template-columns: 1fr;
    }

    .paths-filter-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .paths-filter-header { width: 100%; margin-bottom: 8px; }
    .paths-filter-group { flex: 1; min-width: 140px; margin-bottom: 0; }

    .path-detail-hero { padding: 48px 0 40px; }
    .path-detail-title { font-size: 26px; }

    .path-detail-stats { gap: 10px; }
    .path-stat { padding: 6px 12px; font-size: 12px; }

    .curriculum-step {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-action { width: 100%; }
    .step-btn { width: 100%; text-align: center; }
}
