/* ==================== TASKS PAGE STYLES ==================== */

.tasks-section {
    padding: 3rem 0;
    background: var(--light-bg);
}

.task-category {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.task-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all var(--transition-base);
}

.task-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.task-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.task-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
}

.difficulty {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

.difficulty.easy {
    background: var(--secondary-color);
    color: white;
}

.difficulty.medium {
    background: var(--accent-color);
    color: white;
}

.difficulty.hard {
    background: var(--danger-color);
    color: white;
}

.task-content {
    padding: 2rem;
}

.task-description {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.task-example {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.8;
}

.task-example strong {
    color: var(--primary-color);
}

.solution {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-color);
}

.solution.hidden {
    display: none;
}

.solution pre {
    margin: 0 !important;
}

/* Practice Projects */
.practice-projects {
    margin-top: 4rem;
    padding: 3rem 0;
    background: white;
    border-radius: var(--radius-xl);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--light-border);
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.project-card ul {
    list-style: none;
    padding: 0;
}

.project-card ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.project-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .task-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }
    
    .task-header h3 {
        font-size: 1.125rem;
    }
}