

.tasks-page {
    max-width: 600px;
    margin: 0 auto;
}

.tasks-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tasks-header img.quest-banner {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.tasks-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tasks-subtitle {
    color: var(--color-text-secondary);
    font-size: 16px;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, var(--color-surface), var(--color-surface-light));
    border: 1px solid rgba(178, 255, 90, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    isolation: isolate;
    transition: all var(--transition-fast);
}

.task-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(178, 255, 90, 0.08), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 0;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(178, 255, 90, 0.3);
}

.task-item:hover::before {
    opacity: 1;
}

.task-item.completed {
    opacity: 0.6;
    border-color: rgba(178, 255, 90, 0.08);
}

.task-item.completed:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.task-info {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.task-checkbox-wrapper {
    position: relative;
    flex-shrink: 0;
}

.task-checkbox {
    cursor: pointer;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    transition: all var(--transition-fast);
}

.task-checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.task-checkbox:hover:not(:disabled) {
    border-color: var(--color-primary);
}

.task-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.task-details {
    flex: 1;
    position: relative;
    z-index: 1;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.task-reward {
    font-size: 15px;
    color: var(--color-primary);
    font-weight: 700;
}


/* ===================================
   MOBILE ADAPTATION FOR TASKS PAGE
   =================================== */

@media (max-width: 480px) {
    .tasks-header {
        margin-bottom: 24px;
        gap: 12px;
    }

    .tasks-title {
        font-size: 24px;
    }

    .tasks-subtitle {
        font-size: 15px;
    }

    .tasks-list {
        gap: 12px;
    }

    .task-item {
        padding: 16px;
    }
}

@media (max-width: 375px) {
    .tasks-header {
        margin-bottom: 20px;
    }

    .tasks-title {
        font-size: 22px;
    }

    .tasks-subtitle {
        font-size: 14px;
    }

    .tasks-list {
        gap: 10px;
    }

    .task-item {
        padding: 14px;
    }

    .task-info {
        gap: 14px;
    }

    .task-checkbox {
        width: 28px;
        height: 28px;
    }

    .task-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .task-reward {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .tasks-header {
        margin-bottom: 16px;
        gap: 10px;
    }

    .tasks-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .tasks-subtitle {
        font-size: 13px;
    }

    .tasks-list {
        gap: 8px;
    }

    .task-item {
        padding: 12px;
    }

    .task-info {
        gap: 12px;
    }

    .task-checkbox {
        width: 26px;
        height: 26px;
    }

    .task-title {
        font-size: 14px;
    }

    .task-reward {
        font-size: 13px;
    }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .tasks-header {
        margin-bottom: 16px;
        gap: 8px;
    }

    .tasks-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .task-item {
        padding: 12px;
    }
}
