/* ========================================
   Learning Center - Path-Based Design
   Vanilla CSS, No Dependencies
   ======================================== */

/* ==================== MAIN CONTAINER ==================== */

.learning-center {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.learning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.learning-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark, #212529);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-search,
.btn-progress {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-search:hover,
.btn-progress:hover {
    background: var(--gray-light, #f8f9fa);
    border-color: var(--primary-purple, #8B7EC8);
}

/* ==================== JOURNEY SECTION ==================== */

.journey-section {
    margin-bottom: 2.5rem;
}

.journey-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
    margin: 0 0 1rem 0;
}

.journey-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.journey-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 126, 200, 0.2);
    border-color: var(--primary-purple, #8B7EC8);
}

.journey-card:hover::before {
    opacity: 1;
}

.journey-card-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.journey-card-type.continue {
    color: var(--primary-purple, #8B7EC8);
}

.journey-card-type.up-next {
    color: var(--primary-green, #7FB069);
}

.journey-card-type.for-you {
    color: #f59e0b;
}

.journey-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
    margin-bottom: 0.5rem;
}

.journey-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 1rem;
}

.journey-card-progress {
    margin-bottom: 1rem;
}

.journey-progress-bar {
    height: 6px;
    background: var(--gray-light, #e9ecef);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.journey-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    transition: width 0.5s ease;
}

.journey-progress-text {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
}

.journey-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.journey-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 126, 200, 0.3);
}

/* Empty state for journey cards */
.journey-card.empty {
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.05), rgba(127, 176, 105, 0.05));
    border: 2px dashed var(--border-color, #dee2e6);
}

.journey-card.empty:hover {
    border-color: var(--primary-purple, #8B7EC8);
    transform: none;
    box-shadow: none;
}

/* ==================== QUICK WINS SECTION ==================== */

.quick-wins-section {
    margin-bottom: 2rem;
}

.quick-wins-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
    margin: 0 0 0.25rem 0;
}

.quick-wins-subtitle {
    color: var(--text-muted, #6c757d);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.quick-wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.quick-win-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-win-card:hover {
    border-color: var(--primary-purple, #8B7EC8);
    box-shadow: 0 4px 12px rgba(139, 126, 200, 0.15);
    transform: translateY(-2px);
}

.quick-win-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-win-icon {
    font-size: 1.5rem;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.1), rgba(127, 176, 105, 0.1));
    border-radius: 10px;
    flex-shrink: 0;
}

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

.quick-win-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark, #212529);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    /* Allow wrapping for longer titles */
}

.quick-win-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

.quick-win-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quick-win-module {
    color: var(--primary-purple, #8B7EC8);
}

.quick-win-action {
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.quick-win-action:hover {
    transform: scale(1.05);
}

/* ==================== LEARNING PATH SECTION ==================== */

.learning-path {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color, #dee2e6);
}

.path-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.path-title-group {
    flex: 1;
}

.path-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark, #212529);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.path-icon {
    font-size: 1.75rem;
}

.path-tagline {
    color: var(--text-muted, #6c757d);
    font-style: italic;
    font-size: 1rem;
    margin: 0;
}

.path-badge {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.1), rgba(127, 176, 105, 0.1));
    color: var(--primary-purple, #8B7EC8);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Path Progress Bar */
.path-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-light, #f8f9fa);
    border-radius: 8px;
}

.path-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-medium, #dee2e6);
    border-radius: 4px;
    overflow: hidden;
}

.path-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    transition: width 0.5s ease;
    border-radius: 4px;
}

.path-progress-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark, #212529);
    white-space: nowrap;
}

/* ==================== MODULE TRACK (HORIZONTAL TIMELINE) ==================== */

.module-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple, #8B7EC8) transparent;
}

.module-track::-webkit-scrollbar {
    height: 6px;
}

.module-track::-webkit-scrollbar-track {
    background: transparent;
}

.module-track::-webkit-scrollbar-thumb {
    background: var(--primary-purple, #8B7EC8);
    border-radius: 3px;
}

.module-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.module-node:hover {
    transform: translateY(-4px);
}

.module-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

/* Module States */
.module-node.completed .module-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-green, #7FB069), #5a9a4a);
    color: white;
    border-color: var(--primary-green, #7FB069);
}

.module-node.in-progress .module-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), #7a6bb8);
    color: white;
    border-color: var(--primary-purple, #8B7EC8);
    animation: pulse-glow 2s infinite;
}

.module-node.available .module-icon-wrapper {
    background: white;
    border-color: var(--primary-purple, #8B7EC8);
    color: var(--primary-purple, #8B7EC8);
}

.module-node.locked .module-icon-wrapper {
    background: var(--gray-light, #f8f9fa);
    color: var(--text-muted, #6c757d);
    border-color: var(--gray-medium, #dee2e6);
}

.module-node.locked {
    opacity: 0.7;
    cursor: default;
}

.module-node.locked:hover {
    transform: none;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 126, 200, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(139, 126, 200, 0);
    }
}

/* Check mark overlay for completed */
.module-node.completed .module-icon-wrapper::after {
    content: '✓';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--primary-green, #7FB069);
    border: 2px solid white;
    border-radius: 50%;
    font-size: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-name {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark, #212529);
    text-align: center;
    max-width: 90px;
}

.module-node.locked .module-name {
    color: var(--text-muted, #6c757d);
}

/* Connector Lines */
.module-connector {
    width: 40px;
    height: 3px;
    background: var(--gray-medium, #dee2e6);
    align-self: center;
    margin-top: -32px; /* Align with icon center */
    flex-shrink: 0;
}

.module-connector.completed {
    background: linear-gradient(90deg, var(--primary-green, #7FB069), var(--primary-purple, #8B7EC8));
}

.module-connector.active {
    background: linear-gradient(90deg, var(--primary-purple, #8B7EC8), var(--gray-medium, #dee2e6));
}

/* ==================== VIEW ALL BUTTON ==================== */

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-purple, #8B7EC8);
    border-radius: 8px;
    color: var(--primary-purple, #8B7EC8);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: var(--primary-purple, #8B7EC8);
    color: white;
}

/* ==================== QUICK WINS BADGE ==================== */

.quick-win-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary-green, #7FB069);
    color: white;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.deep-dive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary-purple, #8B7EC8);
    color: white;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==================== FUNDAMENTALS GRID ==================== */

.fundamentals-section {
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.05), rgba(127, 176, 105, 0.05));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.fundamentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.fundamental-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color, #dee2e6);
}

.fundamental-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-purple, #8B7EC8);
}

.fundamental-icon {
    font-size: 1.75rem;
}

.fundamental-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
    margin: 0 0 0.25rem 0;
}

.fundamental-info p {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    margin: 0;
}

.quick-win-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #FF7B54, #FFB347);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fundamental-card {
    position: relative;
}

.path-badge.quick-win {
    background: linear-gradient(135deg, #FF7B54, #FFB347);
    color: white;
}

/* ==================== EMPTY STATE ==================== */

.learning-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.05), rgba(127, 176, 105, 0.05));
    border-radius: 16px;
}

.learning-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.learning-empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark, #212529);
    margin-bottom: 0.5rem;
}

.learning-empty-state p {
    color: var(--text-muted, #6c757d);
    margin-bottom: 1.5rem;
}

/* ==================== WELCOME TOUR ==================== */

.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.welcome-modal {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.welcome-modal h2 {
    font-size: 1.75rem;
    color: var(--text-dark, #212529);
    margin: 0 0 1rem 0;
    text-align: center;
}

.welcome-modal .welcome-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.welcome-paths {
    margin: 2rem 0;
}

.welcome-path-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light, #f8f9fa);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.welcome-path-item .path-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.welcome-path-item .path-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
    margin: 0 0 0.25rem 0;
}

.welcome-path-item .path-info p {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin: 0;
}

.welcome-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-start-journey {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-journey:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 126, 200, 0.4);
}

.btn-skip-tour {
    display: block;
    margin: 1rem auto 0;
    background: none;
    border: none;
    color: var(--text-muted, #6c757d);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-skip-tour:hover {
    color: var(--primary-purple, #8B7EC8);
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1024px) {
    .learning-center {
        padding: 1.5rem;
    }

    .path-title {
        font-size: 1.25rem;
    }

    .module-icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .module-connector {
        width: 30px;
    }
}

@media (max-width: 768px) {
    .learning-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .journey-cards {
        grid-template-columns: 1fr;
    }

    .learning-path {
        padding: 1.5rem;
    }

    .path-header {
        flex-direction: column;
        gap: 1rem;
    }

    .module-track {
        padding-bottom: 1rem;
    }

    .module-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .module-name {
        font-size: 0.75rem;
        max-width: 70px;
    }

    .module-connector {
        width: 20px;
        margin-top: -24px;
    }

    .fundamentals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .learning-center {
        padding: 1rem;
    }

    .learning-header h2 {
        font-size: 1.5rem;
    }

    .path-title {
        font-size: 1.1rem;
    }

    .welcome-modal {
        padding: 2rem;
    }
}

/* ==================== START PATH BUTTON ==================== */

.btn-start-path {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-path:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 126, 200, 0.4);
}

/* ==================== MODULE PROGRESS INDICATOR ==================== */

.module-progress-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    border-radius: 0 0 50% 50%;
}

/* ==================== UNITS MODAL ==================== */

.units-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.units-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.units-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.1), rgba(127, 176, 105, 0.1));
}

.units-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
}

.units-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-muted, #6c757d);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.units-modal-close:hover {
    background: var(--gray-light, #f8f9fa);
    color: var(--text-dark, #212529);
}

.units-modal-content {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.unit-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color, #dee2e6);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-option:hover {
    border-color: var(--primary-purple, #8B7EC8);
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.05), rgba(127, 176, 105, 0.05));
    transform: translateX(4px);
}

.unit-option:last-child {
    margin-bottom: 0;
}

.unit-option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.unit-option-info {
    flex: 1;
    min-width: 0;
}

.unit-option-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
}

.unit-option-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unit-option-progress {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-green, #7FB069);
}

.unit-option-duration {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    white-space: nowrap;
}

/* In-progress module styles */
.module-node.in-progress .module-icon-wrapper {
    border-color: var(--primary-purple, #8B7EC8);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ==================== RESPONSIVE - UNITS MODAL ==================== */

@media (max-width: 768px) {
    .units-modal {
        width: 95%;
        max-height: 90vh;
    }

    .units-modal-header {
        padding: 1rem;
    }

    .unit-option {
        padding: 0.75rem;
    }

    .unit-option-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .unit-option-info h4 {
        font-size: 0.95rem;
    }
}

/* ==================== PROGRESS MODAL ==================== */

.progress-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.progress-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.progress-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.1), rgba(127, 176, 105, 0.1));
}

.progress-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.progress-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted, #6c757d);
    line-height: 1;
    padding: 0.25rem;
}

.progress-modal-close:hover {
    color: var(--text-dark, #212529);
}

.progress-modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Stats Grid */
.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-stat {
    text-align: center;
    padding: 1rem;
    background: var(--gray-light, #f8f9fa);
    border-radius: 10px;
}

.progress-stat .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-purple, #8B7EC8);
}

.progress-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    margin-top: 0.25rem;
}

/* Progress Sections */
.progress-section {
    margin-bottom: 1.5rem;
}

.progress-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Path Progress List */
.path-progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.path-progress-item {
    background: var(--gray-light, #f8f9fa);
    border-radius: 10px;
    padding: 1rem;
}

.path-progress-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.path-progress-header .path-icon {
    font-size: 1.25rem;
}

.path-progress-header .path-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.path-progress-header .path-completion {
    font-weight: 600;
    color: var(--primary-purple, #8B7EC8);
}

.path-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.path-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.path-progress-detail {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
}

/* Unit Progress List */
.unit-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.unit-progress-item {
    padding: 0.75rem 1rem;
    background: var(--gray-light, #f8f9fa);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-progress-item:hover {
    background: rgba(139, 126, 200, 0.1);
    transform: translateX(4px);
}

.unit-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.unit-progress-info .unit-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.unit-progress-info .unit-progress {
    font-weight: 600;
    color: var(--primary-purple, #8B7EC8);
    font-size: 0.85rem;
}

.unit-progress-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.unit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    border-radius: 2px;
}

/* Completed List */
.completed-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.completed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.completed-item .completed-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-green, #7FB069);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.completed-item .completed-title {
    font-size: 0.9rem;
    color: var(--text-dark, #212529);
}

/* Empty State */
.progress-empty {
    text-align: center;
    padding: 2rem;
}

.progress-empty .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.progress-empty p {
    margin: 0.5rem 0;
    color: var(--text-muted, #6c757d);
}

/* Responsive - Laptop */
@media (max-width: 1200px) {
    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .progress-modal {
        width: 95%;
        max-height: 90vh;
    }

    .progress-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-stat .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .progress-modal-content {
        padding: 1rem;
    }

    .path-progress-item {
        padding: 0.75rem;
    }
}

/* ==================== GETTING STARTED SECTION ==================== */

.getting-started-section {
    background: linear-gradient(135deg, #f8f5ff 0%, #f0fff4 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069)) 1;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.getting-started-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
}

.getting-started-section.completed {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    padding: 1rem 2rem;
}

.getting-started-section.completed::before {
    background: var(--primary-green, #7FB069);
}

.getting-started-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.getting-started-section.completed .getting-started-header {
    margin-bottom: 0;
}

.getting-started-title-group {
    flex: 1;
}

.getting-started-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark, #212529);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.getting-started-icon {
    font-size: 1.75rem;
}

.getting-started-section.completed .getting-started-title {
    font-size: 1.1rem;
    color: var(--primary-green, #7FB069);
}

.getting-started-section.completed .getting-started-icon {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    background: var(--primary-green, #7FB069);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.getting-started-subtitle {
    color: var(--text-muted, #6c757d);
    font-size: 1rem;
    margin: 0;
}

.getting-started-badge {
    display: flex;
    gap: 0.5rem;
}

.badge-free {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--primary-green, #7FB069), #5a9a4a);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-expand-getting-started {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--primary-green, #7FB069);
    border-radius: 6px;
    color: var(--primary-green, #7FB069);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-expand-getting-started:hover {
    background: var(--primary-green, #7FB069);
    color: white;
}

/* Getting Started Progress */
.getting-started-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.getting-started-progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.getting-started-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.getting-started-progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
    white-space: nowrap;
}

/* Getting Started Modules Grid */
.getting-started-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.getting-started-module {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    min-width: 0; /* Prevent flex items from overflowing */
}

.getting-started-module[data-clickable="true"] {
    cursor: pointer;
}

.getting-started-module[data-clickable="true"]:hover {
    border-color: var(--primary-purple, #8B7EC8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 126, 200, 0.15);
}

.getting-started-module.completed {
    background: linear-gradient(135deg, rgba(127, 176, 105, 0.1), rgba(127, 176, 105, 0.05));
    border-color: rgba(127, 176, 105, 0.3);
}

.getting-started-module.locked {
    opacity: 0.6;
    cursor: default;
}

/* Module Number Circle */
.gs-module-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.gs-module-number.available {
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), #7a6bb8);
    color: white;
}

.gs-module-number.in-progress {
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    color: white;
    animation: pulse-glow 2s infinite;
}

.gs-module-number.completed {
    background: var(--primary-green, #7FB069);
    color: white;
}

.gs-module-number.locked {
    background: var(--gray-light, #e9ecef);
    color: var(--text-muted, #6c757d);
}

/* Module Content */
.gs-module-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.gs-module-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gs-module-icon {
    font-size: 1.25rem;
}

.gs-module-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #212529);
    margin: 0;
}

.gs-module-description {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.gs-module-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.gs-module-duration {
    color: var(--text-muted, #6c757d);
}

.gs-module-status {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.gs-module-status.completed {
    background: rgba(127, 176, 105, 0.15);
    color: var(--primary-green, #7FB069);
}

.gs-module-status.in-progress {
    background: rgba(139, 126, 200, 0.15);
    color: var(--primary-purple, #8B7EC8);
}

/* Module Action Button */
.gs-module-action {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

.gs-module-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 126, 200, 0.3);
}

.getting-started-module.completed .gs-module-action {
    background: white;
    color: var(--primary-green, #7FB069);
    border: 1px solid var(--primary-green, #7FB069);
}

/* ==================== GETTING STARTED MODALS ==================== */

.gs-complete-modal-overlay,
.gs-celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

.gs-complete-modal,
.gs-celebration-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.gs-complete-header {
    margin-bottom: 1rem;
}

.gs-complete-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gs-complete-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark, #212529);
}

.gs-complete-body {
    margin-bottom: 1.5rem;
}

.gs-complete-body p {
    margin: 0.5rem 0;
}

.gs-complete-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-mark-complete {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-green, #7FB069), #5a9a4a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mark-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 176, 105, 0.4);
}

.btn-close-modal {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-muted, #6c757d);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-close-modal:hover {
    color: var(--text-dark, #212529);
}

/* Celebration Modal */
.gs-celebration-modal {
    max-width: 450px;
}

.gs-celebration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.gs-celebration-modal h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: var(--text-dark, #212529);
}

.gs-celebration-modal > p {
    margin: 0 0 1.5rem 0;
    color: var(--text-muted, #6c757d);
}

.gs-celebration-next {
    background: var(--gray-light, #f8f9fa);
    border-radius: 12px;
    padding: 1.5rem;
}

.gs-next-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-next-option {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-next-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 126, 200, 0.3);
}

.btn-next-option.secondary {
    background: transparent;
    color: var(--text-muted, #6c757d);
    border: 1px solid var(--border-color, #dee2e6);
}

.btn-next-option.secondary:hover {
    background: var(--gray-light, #f8f9fa);
    color: var(--text-dark, #212529);
    transform: none;
    box-shadow: none;
}

/* Journey card for Getting Started */
.journey-card.getting-started-card {
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.08), rgba(127, 176, 105, 0.08));
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--primary-purple, #8B7EC8), var(--primary-green, #7FB069)) 1;
}

.journey-card.getting-started-card:hover {
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.12), rgba(127, 176, 105, 0.12));
}

/* ==================== RESPONSIVE - GETTING STARTED ==================== */

@media (max-width: 768px) {
    .getting-started-section {
        padding: 1.5rem;
    }

    .getting-started-header {
        flex-direction: column;
        gap: 1rem;
    }

    .getting-started-title {
        font-size: 1.25rem;
    }

    .getting-started-modules {
        grid-template-columns: 1fr;
    }

    .getting-started-module {
        padding: 1rem;
    }

    .gs-module-action {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 900px) {
    .getting-started-modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .getting-started-section {
        padding: 1rem;
    }

    .getting-started-progress {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .gs-module-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.8rem;
    }

    .gs-module-name {
        font-size: 0.9rem;
    }
}
