/* My Work Page Styles */
.my-work-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

/* Header Section */
.work-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.work-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.work-title i {
    margin-left: 1rem;
    color: #ffd700;
}

.work-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Main Content */
.work-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title i {
    margin-left: 1rem;
    color: #ffd700;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Learning Section */
.learning-section {
    margin-bottom: 4rem;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 1.8rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-info {
    flex: 1;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.course-source {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.course-progress {
    margin-left: 1rem;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#667eea 0deg, #e2e8f0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
}

.progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    z-index: 1;
}

.course-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.course-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.stat i {
    color: #667eea;
}

.view-chapters-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-chapters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Projects Section */
.projects-section {
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card.current {
    border-left: 5px solid #48bb78;
}

.project-card.future {
    border-left: 5px solid #ed8936;
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 1.5rem;
    color: white;
}

.project-card.current .project-icon {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.project-card.future .project-icon {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.project-status {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.project-badge {
    margin-left: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.current {
    background: #c6f6d5;
    color: #22543d;
}

.badge.future {
    background: #fed7aa;
    color: #7b341e;
}

.project-details {
    margin-top: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    min-width: 40px;
}

/* Modal Styles */
.chapters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.chapters-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .work-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-card {
        padding: 1rem;
    }
    
    .course-header {
        flex-direction: column;
        text-align: center;
    }
    
    .course-icon {
        margin: 0 0 1rem 0;
    }
    
    .course-details {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .course-stats {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .my-work-container {
        padding: 1rem 0;
    }
    
    .work-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .course-card {
        padding: 0.75rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
}

/* Dark Theme */
html[data-theme="dark"] .my-work-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

html[data-theme="dark"] .work-title,
html[data-theme="dark"] .section-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .work-subtitle,
html[data-theme="dark"] .section-description {
    color: #cbd5e1;
}

html[data-theme="dark"] .course-card,
html[data-theme="dark"] .project-card {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .course-title,
html[data-theme="dark"] .project-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .course-source,
html[data-theme="dark"] .project-status {
    color: #94a3b8;
}

html[data-theme="dark"] .stat {
    color: #94a3b8;
}

html[data-theme="dark"] .progress-text {
    color: #f1f5f9;
}

html[data-theme="dark"] .tech-tag {
    background: #334155;
    color: #cbd5e1;
}

html[data-theme="dark"] .progress-bar {
    background: #334155;
}

html[data-theme="dark"] .modal-content {
    background: #1e293b;
}

html[data-theme="dark"] .modal-header {
    border-color: #334155;
}

html[data-theme="dark"] .close-btn {
    color: #f1f5f9;
}

html[data-theme="dark"] .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}


